pub struct IfCheck<X> { /* private fields */ }Expand description
Actual type used to perform an IF check through the type system.
Performing an IF test through the type system requires both this structure as well
as the CTIf trait (or a specialized one). The typed that needs to be matched
is passed into this struct as generic argument for X.
The resulting type must then be cast as CTIf trait, which includes the desired type.
CTIf::Path will then hold the match relevant type.
eg
ⓘ
<IfCheck<Subject> as CTIf<Desired, TypeTrue, TypeFalse>>::Path;Trait Implementations§
Source§impl<X, CondFail, OptionTrue, OptionFalse> CTIf<CondFail, OptionTrue, OptionFalse> for IfCheck<X>
impl<X, CondFail, OptionTrue, OptionFalse> CTIf<CondFail, OptionTrue, OptionFalse> for IfCheck<X>
Source§impl<X, CondFail, OptionTrue, OptionFalse> CTIfOffset<CondFail, OptionTrue, OptionFalse> for IfCheck<X>
impl<X, CondFail, OptionTrue, OptionFalse> CTIfOffset<CondFail, OptionTrue, OptionFalse> for IfCheck<X>
Auto Trait Implementations§
impl<X> Freeze for IfCheck<X>
impl<X> RefUnwindSafe for IfCheck<X>where
X: RefUnwindSafe,
impl<X> Send for IfCheck<X>where
X: Send,
impl<X> Sync for IfCheck<X>where
X: Sync,
impl<X> Unpin for IfCheck<X>where
X: Unpin,
impl<X> UnwindSafe for IfCheck<X>where
X: UnwindSafe,
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