pub trait FromBoolean {
type Boolean: BooleanTrait;
// Required method
fn from_boolean(boolean: &Self::Boolean) -> Self
where Self: Sized;
}
Expand description
Unary operator for instantiating from a boolean.
pub trait FromBoolean {
type Boolean: BooleanTrait;
// Required method
fn from_boolean(boolean: &Self::Boolean) -> Self
where Self: Sized;
}
Unary operator for instantiating from a boolean.