[−][src]Trait core_extensions::type_level_bool::Boolean
Represents a type-level bool
Only implemented on True and False.
For examples look at the module-level documentation.
This trait is sealed and cannot be implemented for types outside this crate.
Associated Types
Loading content...Associated Constants
Loading content...Provided methods
fn if_true<U, F: FnOnce() -> U>(_: F) -> Option<U>
If Self==True,runs the closure and returns Some , otherwise returns None.
fn if_false<U, F: FnOnce() -> U>(_: F) -> Option<U>
If Self==False,runs the closure and returns Some , otherwise returns None.