[−][src]Trait abi_stable::type_level::bools::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>(F) -> Option<U> where
F: FnOnce() -> U,
F: FnOnce() -> U,
If Self==True,runs the closure and returns Some , otherwise returns None.
fn if_false<U, F>(F) -> Option<U> where
F: FnOnce() -> U,
F: FnOnce() -> U,
If Self==False,runs the closure and returns Some , otherwise returns None.
Implementors
impl Boolean for False
[src]
type Not = True
const VALUE: bool
[src]
fn if_false<U, F>(f: F) -> Option<U> where
F: FnOnce() -> U,
[src]
F: FnOnce() -> U,
fn if_true<U, F>(F) -> Option<U> where
F: FnOnce() -> U,
[src]
F: FnOnce() -> U,