pub struct LoadingFrame {
pub from: LoadingShape,
pub to: LoadingShape,
pub morph: f32,
pub rotation_degrees: f32,
}Expand description
A sampled indicator: the shapes being morphed, how far, and the turn.
Fields§
§from: LoadingShape§to: LoadingShape§morph: f320 at from, 1 at to; the spring briefly overshoots past 1.
rotation_degrees: f32Implementations§
Source§impl LoadingFrame
impl LoadingFrame
Sourcepub fn still(shape: LoadingShape) -> Self
pub fn still(shape: LoadingShape) -> Self
A shape at rest, unrotated.
Sourcepub fn determinate(progress: f32) -> Self
pub fn determinate(progress: f32) -> Self
The determinate indicator: a circle at 0 that becomes the soft burst at 1, turning half a turn on the way.
Trait Implementations§
Source§impl Clone for LoadingFrame
impl Clone for LoadingFrame
Source§fn clone(&self) -> LoadingFrame
fn clone(&self) -> LoadingFrame
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 moreimpl Copy for LoadingFrame
Source§impl Debug for LoadingFrame
impl Debug for LoadingFrame
Source§impl PartialEq for LoadingFrame
impl PartialEq for LoadingFrame
impl StructuralPartialEq for LoadingFrame
Auto Trait Implementations§
impl Freeze for LoadingFrame
impl RefUnwindSafe for LoadingFrame
impl Send for LoadingFrame
impl Sync for LoadingFrame
impl Unpin for LoadingFrame
impl UnsafeUnpin for LoadingFrame
impl UnwindSafe for LoadingFrame
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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