pub trait HasTernaryOp<D>: Clone + Copy {
// Required method
fn ternary_op_fn(
self,
mode: Option<TernaryArgMode>,
) -> impl Fn(Opt<D>, Opt<D>, Opt<D>) -> Opt<D>;
}Expand description
Trait for ops that provide ternary operation function.
Required Methods§
Sourcefn ternary_op_fn(
self,
mode: Option<TernaryArgMode>,
) -> impl Fn(Opt<D>, Opt<D>, Opt<D>) -> Opt<D>
fn ternary_op_fn( self, mode: Option<TernaryArgMode>, ) -> impl Fn(Opt<D>, Opt<D>, Opt<D>) -> Opt<D>
Returns a function that applies this ternary operation.
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.