Trait BoolOnlyIf

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

Boolean OnlyIf. Use as OnlyIf<X, Y> or <X as BoolOnlyIf<Y>>::Output. As a logical proposition, this is equivalent to “Y only if X”.

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§