pub struct Present;Expand description
Type-level True.
Trait Implementations§
Source§impl Bool for Present
impl Bool for Present
const VALUE: bool = true
Source§type Elif<Then: Bool, Else: Bool> = Then
type Elif<Then: Bool, Else: Bool> = Then
Type-level boolean conditional: Then<T, E> where T, E are Bool.
Returns a type guaranteed to implement Bool.
Source§fn static_dispatch<Then, Else, Output>() -> Outputwhere
Then: StaticMethodImpl<Output>,
Else: StaticMethodImpl<Output>,
fn static_dispatch<Then, Else, Output>() -> Outputwhere
Then: StaticMethodImpl<Output>,
Else: StaticMethodImpl<Output>,
Call a static method based on this boolean value.
If true (Present), calls Then::call().
If false (Absent), calls Else::call().
Source§impl<Then, Else, Output> BoolStaticCall<Then, Else, Output> for Presentwhere
Then: StaticMethodImpl<Output>,
impl<Then, Else, Output> BoolStaticCall<Then, Else, Output> for Presentwhere
Then: StaticMethodImpl<Output>,
Source§impl<B1, B2> GateBodyEq<B1, B2> for Presentwhere
B1: ItemEq<B2>,
impl<B1, B2> GateBodyEq<B1, B2> for Presentwhere
B1: ItemEq<B2>,
Source§impl<Cap, Depth, Nib> LeafCollisionBranch<Cap, Cap, Present, Depth, Nib> for Leaf<Cap>where
Cap: Capability,
Nib: Nibble,
impl<Cap, Depth, Nib> LeafCollisionBranch<Cap, Cap, Present, Depth, Nib> for Leaf<Cap>where
Cap: Capability,
Nib: Nibble,
Source§impl<TailA, TailB, L> StreamEqDispatch<TailA, TailB, L> for Present
impl<TailA, TailB, L> StreamEqDispatch<TailA, TailB, L> for Present
impl<S, Q: ?Sized> IsTrue<S, Q> for Present
Auto Trait Implementations§
impl Freeze for Present
impl RefUnwindSafe for Present
impl Send for Present
impl Sync for Present
impl Unpin for Present
impl UnwindSafe for Present
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more