pub struct PlotAppear { /* private fields */ }Expand description
How far a plot’s data marks have appeared this frame, handed to
Plot::appear.
The appear starts on the first frame a plot’s id is painted and runs over
the active PlotMotion’s appear. Base’s default
duration is zero, and reduced motion skips it, so a plot is then complete
from its first frame.
Implementations§
Source§impl PlotAppear
impl PlotAppear
Sourcepub fn is_appearing(&self) -> bool
pub fn is_appearing(&self) -> bool
Whether the appear is still running.
Sourcepub fn staggered(&self, index: usize, count: usize, spread: f32) -> f32
pub fn staggered(&self, index: usize, count: usize, spread: f32) -> f32
How far mark index of count has appeared, from 0 to 1, eased.
The marks start one after another across the first spread of the
appear (0..1) and each runs for the rest of it, so the last mark
still finishes with the appear however many marks there are. A spread
of 0 moves every mark together.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PlotAppear
impl !Send for PlotAppear
impl !Sync for PlotAppear
impl !UnwindSafe for PlotAppear
impl Freeze for PlotAppear
impl Unpin for PlotAppear
impl UnsafeUnpin for PlotAppear
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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