Skip to main content

Not

Trait Not 

Source
pub trait Not {
    type Result: Bool;
}
Expand description

Type-level boolean NOT.

§Examples

use reflect_nat::{True, False, Not};
use reify_reflect_core::Reflect;

assert_eq!(<<True as Not>::Result as Reflect>::reflect(), false);
assert_eq!(<<False as Not>::Result as Reflect>::reflect(), true);

Required Associated Types§

Source

type Result: Bool

The negated type-level boolean.

Implementors§