pub struct Offset<S: Scale, F: TimeFormat> { /* private fields */ }Expand description
A typed displacement between two Coord<S, F> values.
Implementations§
Source§impl<S: Scale, F: TimeFormat> Offset<S, F>
impl<S: Scale, F: TimeFormat> Offset<S, F>
Sourcepub const fn from_raw_unchecked(raw: Quantity<F::Unit>) -> Self
pub const fn from_raw_unchecked(raw: Quantity<F::Unit>) -> Self
Wrap a raw quantity without checking finiteness.
Provided for const contexts such as crate-level constants.
The caller is responsible for passing a finite value.
Trait Implementations§
Source§impl<S: Scale, F: TimeFormat> PartialOrd for Offset<S, F>
impl<S: Scale, F: TimeFormat> PartialOrd for Offset<S, F>
impl<S: Scale, F: TimeFormat> Copy for Offset<S, F>
Auto Trait Implementations§
impl<S, F> Freeze for Offset<S, F>
impl<S, F> RefUnwindSafe for Offset<S, F>
impl<S, F> Send for Offset<S, F>
impl<S, F> Sync for Offset<S, F>
impl<S, F> Unpin for Offset<S, F>
impl<S, F> UnsafeUnpin for Offset<S, F>
impl<S, F> UnwindSafe for Offset<S, F>
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