types

Crates.iotypes
lib.rstypes
version0.1.2
sourcesrc
created_at2019-05-23 17:20:40.612163
updated_at2019-05-24 12:10:02.817546
descriptionType condtions.
homepagehttps://github.com/clearloop/types
repositoryhttps://github.com/clearloop/types
max_upload_size
id136466
size6,548
(clearloop)

documentation

https://docs.rs/types/0.1.1/types/

README

types

Crates.io Crates.io LICENSE

Rust types conditions, wrap std::any::Typed.

Examples

ty_cond

assert_eq!(types::ty_cond(&0, &1), true);
assert_ne!(types::ty_cond(&0, &String::default()), true);

Conds

use types::Conds;

// ints
assert_eq!(0_i8.is_i8(), true);
assert_ne!(0_u8.is_i8(), true);

// uints
assert_eq!(0_u8.is_u8(), true);
assert_ne!(0_i8.is_u8(), true);

// floats
assert_eq!(0_f32.is_f32(), true);
assert_ne!(0_i32.is_f32(), true);

LICENSE

MIT

Commit count: 6

cargo fmt