Skip to main content

CycleCounter

Trait CycleCounter 

Source
pub trait CycleCounter {
    // Required methods
    fn cycle_add(&self, rhs: Self) -> Self;
    fn less_than(&self, rhs: Self) -> bool;
    fn greater_equal(&self, rhs: Self) -> bool;
}

Required Methods§

Source

fn cycle_add(&self, rhs: Self) -> Self

Source

fn less_than(&self, rhs: Self) -> bool

<

Source

fn greater_equal(&self, rhs: Self) -> bool

=

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 CycleCounter for i32

Source§

fn cycle_add(&self, rhs: Self) -> Self

Source§

fn less_than(&self, rhs: Self) -> bool

Source§

fn greater_equal(&self, rhs: Self) -> bool

Source§

impl CycleCounter for u32

Source§

fn cycle_add(&self, rhs: Self) -> Self

Source§

fn less_than(&self, rhs: Self) -> bool

Source§

fn greater_equal(&self, rhs: Self) -> bool

Source§

impl CycleCounter for u64

Source§

fn cycle_add(&self, rhs: Self) -> Self

Source§

fn less_than(&self, rhs: Self) -> bool

Source§

fn greater_equal(&self, rhs: Self) -> bool

Implementors§