struct Snapshot<S> {
alpha: f64,
state: S,
}Expand description
The memoization snapshot backing an iterative segment.
Holds the progress already reached (alpha) and the state there. Because
eval_alpha is a pure query on &self — an animation’s content is
immutable once defined — the adapter keeps this snapshot behind a
RefCell: advancing writes into it, projecting reads from it, and neither
escapes the &self query contract. This is memoization, not mutation of
the animation’s definition.
Fields§
§alpha: f64§state: SAuto Trait Implementations§
impl<S> Freeze for Snapshot<S>where
S: Freeze,
impl<S> RefUnwindSafe for Snapshot<S>where
S: RefUnwindSafe,
impl<S> Send for Snapshot<S>where
S: Send,
impl<S> Sync for Snapshot<S>where
S: Sync,
impl<S> Unpin for Snapshot<S>where
S: Unpin,
impl<S> UnsafeUnpin for Snapshot<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Snapshot<S>where
S: UnwindSafe,
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<T> ConditionalSend for Twhere
T: Send,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.
§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> TransformedExt for T
impl<T> TransformedExt for T
Source§fn transformed<G>(self, transform: G) -> Transformed<Self, G>
fn transformed<G>(self, transform: G) -> Transformed<Self, G>
Return
self wrapped with transform stored exactly as G.