pub trait TimerOps: Copy {
const MAX: Self;
const ONE: Self;
// Required methods
fn xor(self, other: Self) -> Self;
fn and(self, other: Self) -> Self;
fn add(self, other: Self) -> Self;
fn left_shift(self, amount: u32) -> Self;
}
Expand description
Operations a type has to support
in order to be used as the return value
of calculate_now
.
Required Associated Constants§
Required Methods§
sourcefn left_shift(self, amount: u32) -> Self
fn left_shift(self, amount: u32) -> Self
The <<
operation.
Object Safety§
This trait is not object safe.