Trait IfTrueConditional
pub trait IfTrueConditional<J> {
// Required methods
fn if_true(self, if_true: J) -> IfEq<J>;
fn if_true_then(self, if_true: impl FnOnce() -> J) -> IfEq<J>;
fn if_false(self, if_false: J) -> IfEq<J>;
fn if_false_then(self, if_false: impl FnOnce() -> J) -> IfEq<J>;
}
Required Methods§
fn if_true(self, if_true: J) -> IfEq<J>
fn if_true_then(self, if_true: impl FnOnce() -> J) -> IfEq<J>
fn if_false(self, if_false: J) -> IfEq<J>
fn if_false_then(self, if_false: impl FnOnce() -> J) -> IfEq<J>
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.