Trait PartialMin

Source
pub trait PartialMin: PartialOrd<Self>
where Self: Sized,
{ // Provided method fn partial_min(self, other: Self) -> Option<Self> { ... } }

Provided Methods§

Source

fn partial_min(self, other: Self) -> Option<Self>

Returns the minimum of two values, if they are comparable.

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.

Implementors§