pub struct AnimationState<Prop>where
Prop: Interpolator,{}Fields§
§indices: Vec<usize>§start_time: Instant§duration: Duration§delay: f32§keyframes: Vec<(f32, Prop)>§output: Option<Prop>§persistent: bool§t0: f32§t: f32§active: bool§from_rule: usize§to_rule: usize§entities: Vec<Entity>Implementations§
Source§impl<Prop> AnimationState<Prop>where
Prop: Interpolator,
impl<Prop> AnimationState<Prop>where
Prop: Interpolator,
pub fn new() -> AnimationState<Prop>
pub fn with_duration(self, duration: Duration) -> AnimationState<Prop>
pub fn with_delay(self, delay: Duration) -> AnimationState<Prop>
pub fn set_delay(&mut self, delay: Duration) -> &mut AnimationState<Prop>
pub fn with_keyframe(self, key: (f32, Prop)) -> AnimationState<Prop>
pub fn interpolate(&mut self, current_time: Instant) -> bool
pub fn set_persistent(self, flag: bool) -> AnimationState<Prop>
pub fn get_output(&self) -> Option<&Prop>
Trait Implementations§
Source§impl<Prop> Clone for AnimationState<Prop>where
Prop: Clone + Interpolator,
impl<Prop> Clone for AnimationState<Prop>where
Prop: Clone + Interpolator,
Source§fn clone(&self) -> AnimationState<Prop>
fn clone(&self) -> AnimationState<Prop>
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 moreSource§impl<Prop> Debug for AnimationState<Prop>where
Prop: Debug + Interpolator,
impl<Prop> Debug for AnimationState<Prop>where
Prop: Debug + Interpolator,
Source§impl<Prop> Default for AnimationState<Prop>where
Prop: Interpolator,
impl<Prop> Default for AnimationState<Prop>where
Prop: Interpolator,
Source§fn default() -> AnimationState<Prop>
fn default() -> AnimationState<Prop>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<Prop> Freeze for AnimationState<Prop>where
Prop: Freeze,
impl<Prop> RefUnwindSafe for AnimationState<Prop>where
Prop: RefUnwindSafe,
impl<Prop> Send for AnimationState<Prop>where
Prop: Send,
impl<Prop> Sync for AnimationState<Prop>where
Prop: Sync,
impl<Prop> Unpin for AnimationState<Prop>where
Prop: Unpin,
impl<Prop> UnsafeUnpin for AnimationState<Prop>where
Prop: UnsafeUnpin,
impl<Prop> UnwindSafe for AnimationState<Prop>where
Prop: 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