Trait PartialOrd

Source
pub unsafe trait PartialOrd<Rhs = Self>: PartialEq<Rhs> + PartialOrd<Rhs>
where Rhs: ?Sized,
{ }
Expand description

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

§Example

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

§Safety

should be implemented by newer_type::implement

Implementors§