[][src]Struct polyhorn_ui::animation::Keyframe

pub struct Keyframe<T> {
    pub time: Duration,
    pub value: T,
}

Single keyframe within a keyframe animation that describes the value of a property at a particular point in time.

Fields

time: Duration

This is the time to which this keyframe applies. The time is relative to the start of the animation, not to the start of time itself.

value: T

This is the value that the property should have at this point in time.

Trait Implementations

impl<T: Clone> Clone for Keyframe<T>[src]

impl<T: Copy> Copy for Keyframe<T>[src]

impl<T: Debug> Debug for Keyframe<T>[src]

impl<T: PartialEq> PartialEq<Keyframe<T>> for Keyframe<T>[src]

impl<T> StructuralPartialEq for Keyframe<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Keyframe<T> where
    T: RefUnwindSafe

impl<T> Send for Keyframe<T> where
    T: Send

impl<T> Sync for Keyframe<T> where
    T: Sync

impl<T> Unpin for Keyframe<T> where
    T: Unpin

impl<T> UnwindSafe for Keyframe<T> where
    T: UnwindSafe

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.