pub struct ActiveTransition {
pub property: String,
pub from: f32,
pub to: f32,
pub duration: Duration,
pub delay: Duration,
pub easing: Easing,
pub elapsed: Duration,
pub started: bool,
}Expand description
Active transition state for a property
Fields§
§property: StringProperty being transitioned
from: f32Start value
to: f32End value
duration: DurationDuration
delay: DurationDelay
easing: EasingEasing
elapsed: DurationElapsed time
started: boolWhether the transition has started (after delay)
Implementations§
Source§impl ActiveTransition
impl ActiveTransition
Sourcepub fn new(
property: impl Into<String>,
from: f32,
to: f32,
transition: &Transition,
) -> Self
pub fn new( property: impl Into<String>, from: f32, to: f32, transition: &Transition, ) -> Self
Create a new active transition
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if transition is complete
Trait Implementations§
Source§impl Clone for ActiveTransition
impl Clone for ActiveTransition
Source§fn clone(&self) -> ActiveTransition
fn clone(&self) -> ActiveTransition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ActiveTransition
impl RefUnwindSafe for ActiveTransition
impl Send for ActiveTransition
impl Sync for ActiveTransition
impl Unpin for ActiveTransition
impl UnwindSafe for ActiveTransition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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