Crate typing_tools
source · [−]Expand description
Collection of general purpose tools for type checking.
Module :: typing_tools
Collection of general purpose tools for type checking.
Sample
use typing_tools::*;
let src = Box::new( true );
assert_eq!( implements!( src => Copy ), false );
assert_eq!( implements!( src => Clone ), true );To add to your project
cargo add typing_toolsTry out from the repository
git clone https://github.com/Wandalen/wTools
cd wTools
cd sample/rust/typing_tools_trivial
cargo runRe-exports
pub use super::orphan::*;Modules
Dependencies.
Exposed namespace of the module.
Orphan namespace of the module.
Prelude to use essentials: use my_module::prelude::*.
Protected namespace of the module.
Collection of general purpose tools for type checking.
Macros
Macro implements to answer the question: does it implement a trait?
Macro to inspect type of a variable and its size exporting it as a string.
Macro to inspect type of a variable and its size printing into stdout and exporting it as a string.
Macro instance_of to answer the question: does it implement a trait? Alias of the macro implements.
Macro to answer the question: is it a slice?
