Ord in typenum::marker_traits - Rust
Description: A Marker trait for the types `Greater`, `Equal`, and `Less`.
Keywords: rust, rustlang, rust-lang, Ord

# Trait typenum::marker_traits::Ord

source ·

    pub trait Ord: Sealed {
        fn to_ordering() -> Ordering;
    }

Expand description

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

## Required Methods§

source

#### fn to_ordering() -> Ordering

## 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`