#[derive(Not)]
{
// Attributes available to this derive:
#[not]
}
Expand description
Implement Not for a structure.
ยงSample.
use derive_tools::Not;
#[ derive( Not ) ]
struct MyStruct( bool );
let my_struct = MyStruct( true );
dbg!( !my_struct );To learn more about the feature, study the module derive_tools::Not.