pub struct AnimSample {
pub progress: f64,
pub done: bool,
}Expand description
Where an AnimSpec is at one moment: what AnimSpec::sample answers.
Fields§
§progress: f640 at the start value, 1 at the target. A spring may pass 1 on the way. Once
done, it is where the last cycle ended: 1, or 0 when an autoreversed run ended on
a backward cycle.
done: boolWhether the run is over. Always false for a spec that repeats forever.
Trait Implementations§
Source§impl Clone for AnimSample
impl Clone for AnimSample
impl Copy for AnimSample
Source§impl Debug for AnimSample
impl Debug for AnimSample
Source§impl PartialEq for AnimSample
impl PartialEq for AnimSample
impl StructuralPartialEq for AnimSample
Auto Trait Implementations§
impl Forget for AnimSample
impl Freeze for AnimSample
impl Move for AnimSample
impl RefUnwindSafe for AnimSample
impl Send for AnimSample
impl Sync for AnimSample
impl Unpin for AnimSample
impl UnsafeUnpin for AnimSample
impl UnwindSafe for AnimSample
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