5 releases
| 0.2.1 | Apr 13, 2020 |
|---|---|
| 0.2.0 | Aug 11, 2019 |
| 0.1.2 | Aug 8, 2019 |
| 0.1.1 | Aug 8, 2019 |
| 0.1.0 | Aug 8, 2019 |
#1165 in Data structures
Used in 2 crates
8KB
cast-rs
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.
Usage
Add this to your Cargo.toml:
[dependencies]
cast-rs = "0.2.1"
and those to your crate root:
hex
use cast_rs::hex;
downcast
use cast_rs::downcast_rs::*;
slicecast
use cast_rs::slice_cast;
Dependencies
~65KB