pub enum TimeReference {
Midpoint,
Start,
End,
}Expand description
Where events are warped to.
Variants§
Midpoint
The middle of the slice. Halves the worst-case displacement compared with either end, which halves the error from assuming motion is linear over the interval.
Start
The first event’s timestamp.
End
The last event’s timestamp — what the reference implementation uses.
Trait Implementations§
Source§impl Clone for TimeReference
impl Clone for TimeReference
Source§fn clone(&self) -> TimeReference
fn clone(&self) -> TimeReference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimeReference
Source§impl Debug for TimeReference
impl Debug for TimeReference
Source§impl Default for TimeReference
impl Default for TimeReference
Source§fn default() -> TimeReference
fn default() -> TimeReference
Returns the “default value” for a type. Read more
impl Eq for TimeReference
Source§impl PartialEq for TimeReference
impl PartialEq for TimeReference
impl StructuralPartialEq for TimeReference
Auto Trait Implementations§
impl Freeze for TimeReference
impl RefUnwindSafe for TimeReference
impl Send for TimeReference
impl Sync for TimeReference
impl Unpin for TimeReference
impl UnsafeUnpin for TimeReference
impl UnwindSafe for TimeReference
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more