typenum::marker_traits

Trait Ord

Source
pub trait Ord: Sealed {
    // Required method
    fn to_ordering() -> Ordering;
}
Expand description

A Marker trait for the types Greater, Equal, and Less.

Required Methods§

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§

Source§

impl Ord for Equal

Returns core::cmp::Ordering::Equal

Source§

impl Ord for Greater

Returns core::cmp::Ordering::Greater

Source§

impl Ord for Less

Returns core::cmp::Ordering::Less