Crates.io | checking |
lib.rs | checking |
version | 0.1.0 |
source | src |
created_at | 2022-08-02 12:08:52.187137 |
updated_at | 2022-08-02 12:08:52.187137 |
description | A simple data checker for Rust |
homepage | |
repository | |
max_upload_size | |
id | 637303 |
size | 4,544 |
This crate is a checking crate that make the type checking easier in Rust.
use checking::Checker;
fn main() {
let result: bool = Checker::type_of::<i32>(&"test".to_string());
match result {
true => println!("Correct type"),
false => println!("Incorrect type"),
}
// Expected result: Correct type
}