Crates.io | cast-rs |
lib.rs | cast-rs |
version | 0.2.1 |
source | src |
created_at | 2019-08-08 04:25:58.847958 |
updated_at | 2020-04-13 00:03:50.30869 |
description | A collection of types cast for Rust. |
homepage | |
repository | https://github.com/zTgx/cast-rs.git |
max_upload_size | |
id | 154918 |
size | 17,435 |
A collection of types cast for Rust.
cast-rs
is a meta-crate, re-exporting items from these sub-crates:
Repository | Crate | Documentation |
---|---|---|
hex | ||
downcast-rs | ||
slice-cast |
Note: cast-rs
is listed here for reference, but it's not directly included
in cast-rs
. This is a proc-macro
crate for deriving some of cast-rs
's traits.
Add this to your Cargo.toml
:
[dependencies]
cast-rs = "0.2.1"
and those to your crate root:
use cast_rs::hex;
use cast_rs::downcast_rs::*;
use cast_rs::slice_cast;