Trait Ord

Source
pub unsafe trait Ord:
    Eq
    + PartialOrd
    + Ord { }
Expand description

This trait is empty declaration of ::core::cmp::Ord to be used with newer_type::implement.

§Example

#[implement(newer_type_std::cmp::PartialEq)]
#[implement(newer_type_std::cmp::Eq)]
#[implement(newer_type_std::cmp::PartialOrd)]
#[implement(newer_type_std::cmp::Ord)]
struct MyStruct {
    slot: u8
}

§Safety

should be implemented by newer_type::implement

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§