Trait BoolIfThen

Source
pub trait BoolIfThen<B: Bool>: Bool {
    type Output: Bool;
}
Expand description

Boolean IfThen. Use as IfThen<X, Y> or <X as BoolIfThen<Y>>::Output. As a logical proposition, this is equivalent to “if X, then Y”.

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§