Struct crystalorb::timestamp::Timestamped [−][src]
pub struct Timestamped<T> { /* fields omitted */ }
Expand description
Associate a Timestamp
with another type.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Interpolate between two timestamped display states. If the two timestamps are
different, then the interpolation parameter t
must be either 0.0
or 1.0
.
Panics
Panics if the timestamps are different but the interpolation parameter is not 0.0
nor
1.0
, since timestamps are whole number values and cannot be continuously
interpolated. Interpolating between two display states of different timestamps is known
as “tweening” (i.e. animation in-betweening) and should be done using
Tweened::from_interpolation
.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for Timestamped<T> where
T: RefUnwindSafe,
impl<T> Send for Timestamped<T> where
T: Send,
impl<T> Sync for Timestamped<T> where
T: Sync,
impl<T> Unpin for Timestamped<T> where
T: Unpin,
impl<T> UnwindSafe for Timestamped<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more