Skip to main content

Pick

Trait Pick 

Source
trait Pick {
    // Required method
    fn pick<'a, T: Ord>(lhs: &'a T, rhs: &'a T) -> &'a T;

    // Provided method
    fn combine<'a, T: Ord>(
        lhs: Option<&'a T>,
        rhs: Option<&'a T>,
    ) -> Option<&'a T> { ... }
}
Expand description

The order in which a BoundTree keeps the better of two bounds. A type parameter rather than a function pointer, so each sweep is monomorphized.

Required Methods§

Source

fn pick<'a, T: Ord>(lhs: &'a T, rhs: &'a T) -> &'a T

Provided Methods§

Source

fn combine<'a, T: Ord>(lhs: Option<&'a T>, rhs: Option<&'a T>) -> Option<&'a T>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§