Skip to main content

ternary

Function ternary 

Source
pub fn ternary<T: Debug + Display + Clone>(
    condition: impl Expressive<T>,
    true_val: impl Expressive<T>,
    false_val: impl Expressive<T>,
) -> Ternary<T>
Expand description

Shorthand for Ternary::new(condition, true_val, false_val).