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_tools§Try out from the repository
git clone https://github.com/Wandalen/wTools
cd wTools
cd sample/rust/typing_tools_trivial
cargo runModules§
- dependency
- Dependencies.
- typing
- Collection of general purpose tools for type checking.
Macros§
- implements
- Macro
implementsto answer the question: does it implement a trait? - instance_
of - Macro
instance_ofto answer the question: does it implement a trait? Alias of the macroimplements. - is_
slice - Macro to answer the question: is it a slice?