Struct Tenor
pub struct Tenor(pub Period);Expand description
A rung’s tenor as a label carries it: ordered by its spelling’s parts, so a
label stays totally ordered where a Period is only semantically so
(12M and 1Y compare equal).
Tuple Fields§
§0: PeriodImplementations§
Trait Implementations§
impl Copy for Tenor
impl Eq for Tenor
§impl Ord for Tenor
impl Ord for Tenor
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Auto Trait Implementations§
impl Freeze for Tenor
impl RefUnwindSafe for Tenor
impl Send for Tenor
impl Sync for Tenor
impl Unpin for Tenor
impl UnsafeUnpin for Tenor
impl UnwindSafe for Tenor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more