pub struct Scaled {
pub ticks: u64,
pub scale: Timescale,
}Expand description
A value (timestamp or duration) paired with the Timescale it lives in.
Fields§
§ticks: u64The raw tick count.
scale: TimescaleThe timescale ticks are expressed in.
Implementations§
Trait Implementations§
impl Copy for Scaled
impl Eq for Scaled
impl StructuralPartialEq for Scaled
Auto Trait Implementations§
impl Freeze for Scaled
impl RefUnwindSafe for Scaled
impl Send for Scaled
impl Sync for Scaled
impl Unpin for Scaled
impl UnsafeUnpin for Scaled
impl UnwindSafe for Scaled
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