Skip to main content

Slot

Trait Slot 

Source
pub trait Slot:
    Copy
    + Ord
    + Debug
    + Add<Self::Duration, Output = Self>
    + Sub<Self, Output = Self::Duration>
    + Rem<Self::Duration, Output = Self::Duration>
    + Sub<Self::Duration, Output = Self> {
    type Duration: Copy + Ord + Debug + IsZero;

    // Required method
    fn order_key(&self) -> u64;
}

Required Associated Types§

Required Methods§

Source

fn order_key(&self) -> u64

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 Slot for DateTime

Source§

impl Slot for u64

Implementors§