pub trait Ternary {
type Boolean;
type Output;
fn ternary(
condition: &Self::Boolean,
first: &Self,
second: &Self
) -> Self::Output;
}
Expand description
Trait for ternary operations.
pub trait Ternary {
type Boolean;
type Output;
fn ternary(
condition: &Self::Boolean,
first: &Self,
second: &Self
) -> Self::Output;
}
Trait for ternary operations.