pub struct FollowPath { /* private fields */ }Expand description
Finite path motion sampled by normalized arc length.
Implementations§
Trait Implementations§
Source§impl Clone for FollowPath
impl Clone for FollowPath
Source§impl Debug for FollowPath
impl Debug for FollowPath
Source§impl FiniteAnimation<PathSample> for FollowPath
impl FiniteAnimation<PathSample> for FollowPath
Source§fn delay(self, offset: Duration) -> Delay<Self>where
Self: Sized,
fn delay(self, offset: Duration) -> Delay<Self>where
Self: Sized,
Delays the animation, holding its initial value before the offset. Read more
Source§fn try_delay(self, offset: Duration) -> Result<Delay<Self>, ValidationError>where
Self: Sized,
fn try_delay(self, offset: Duration) -> Result<Delay<Self>, ValidationError>where
Self: Sized,
Delays like
Self::delay, reporting duration overflow.Source§fn speed(self, factor: f64) -> Speed<Self>where
Self: Sized,
fn speed(self, factor: f64) -> Speed<Self>where
Self: Sized,
Changes playback speed by a finite, strictly positive factor.
Durations round to the nearest tick; a collapsed animation becomes
instantaneous. Read more
Source§fn try_speed(self, factor: f64) -> Result<Speed<Self>, ValidationError>where
Self: Sized,
fn try_speed(self, factor: f64) -> Result<Speed<Self>, ValidationError>where
Self: Sized,
Changes speed like
Self::speed, reporting an invalid factor or
unrepresentable duration.Source§fn then<Next: FiniteAnimation<Value>>(self, next: Next) -> Then<Self, Next>where
Self: Sized,
fn then<Next: FiniteAnimation<Value>>(self, next: Next) -> Then<Self, Next>where
Self: Sized,
Runs two animations in sequence. The second owns their shared
boundary. Duration overflow panics at construction.
Source§fn repeat(self, count: u32) -> Repeat<Self>where
Self: Sized,
fn repeat(self, count: u32) -> Repeat<Self>where
Self: Sized,
Plays the animation
count times. Intermediate boundaries restart;
the final boundary holds the target. Zero repeats hold the initial value.
Duration overflow panics at construction.Source§fn ping_pong(self) -> PingPong<Self>where
Self: Sized,
fn ping_pong(self) -> PingPong<Self>where
Self: Sized,
Plays the animation forward then backward, ending at its initial
value. Duration overflow panics at construction.
Source§fn boxed_finite(self) -> Arc<dyn FiniteAnimation<Value>> ⓘwhere
Self: Sized + 'static,
fn boxed_finite(self) -> Arc<dyn FiniteAnimation<Value>> ⓘwhere
Self: Sized + 'static,
Shares a type-erased animation, retaining sampling, duration and combinators.
Source§impl Signal<PathSample> for FollowPath
impl Signal<PathSample> for FollowPath
Source§fn sample(&self, time: Time) -> PathSample
fn sample(&self, time: Time) -> PathSample
Samples without advancing a clock or changing playback state.
Source§fn map<Output, Function>(self, function: Function) -> Map<Self, Function, Value>
fn map<Output, Function>(self, function: Function) -> Map<Self, Function, Value>
Transforms values without changing timing.
Auto Trait Implementations§
impl !RefUnwindSafe for FollowPath
impl !UnwindSafe for FollowPath
impl Forget for FollowPath
impl Freeze for FollowPath
impl Move for FollowPath
impl Send for FollowPath
impl Sync for FollowPath
impl Unpin for FollowPath
impl UnsafeUnpin for FollowPath
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