pub trait BoolExt {
// Required methods
fn ternary<U>(&self, _: U, _: U) -> U;
fn and_then<U>(&self, _: impl FnOnce() -> Option<U>) -> Option<U>;
fn neg(&self) -> Self;
fn or_exit(&self);
}Required Methods§
fn ternary<U>(&self, _: U, _: U) -> U
fn and_then<U>(&self, _: impl FnOnce() -> Option<U>) -> Option<U>
fn neg(&self) -> Self
fn or_exit(&self)
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.