Skip to main content

ScalarPartialOrd

Trait ScalarPartialOrd 

Source
pub trait ScalarPartialOrd: Scalar {
    // Required method
    fn scalar_cmp(&self, other: Self::ScalarRefType<'_>) -> Option<Ordering>;
}
Expand description

ScalarPartialOrd allows comparison between Scalar and ScalarRef.

TODO: see if it is possible to implement this trait directly on ScalarRef.

Required Methods§

Source

fn scalar_cmp(&self, other: Self::ScalarRefType<'_>) -> Option<Ordering>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ScalarPartialOrd for Box<str>

Source§

fn scalar_cmp(&self, other: &str) -> Option<Ordering>

Source§

impl ScalarPartialOrd for bool

Source§

fn scalar_cmp(&self, other: Self) -> Option<Ordering>

Implementors§