pub enum SpinnerStyle {
Arc,
Dots,
Orbit,
Pop,
Pulse,
Quarters,
Slices,
}Expand description
How a Spinner moves. Every style is a built-in cell animation with
Nerd Font, Unicode and ASCII frames, which themes and applications can replace.
Variants§
Arc
An arc sweeping round (animation spinner-arc). The default.
Dots
Braille dots turning in place (animation spinner-dots).
Orbit
A single dot orbiting a cell (animation spinner-orbit).
Pop
A dot growing and shrinking (animation spinner-pop).
Pulse
A dot breathing between faint and the spinner’s colour (animation spinner-pulse).
Quarters
A filled quarter of the cell turning clockwise (animation spinner-quarters). The
quadrant blocks are drawn by terminals themselves, so they fill exactly one cell in any font.
Slices
A pie filling slice by slice, then starting again (animation spinner-slices). The Nerd
Font frames are nf-md-circle_slice_1..8 (Nerd Font v3).
Implementations§
Source§impl SpinnerStyle
impl SpinnerStyle
Trait Implementations§
Source§impl Clone for SpinnerStyle
impl Clone for SpinnerStyle
Source§fn clone(&self) -> SpinnerStyle
fn clone(&self) -> SpinnerStyle
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SpinnerStyle
Source§impl Debug for SpinnerStyle
impl Debug for SpinnerStyle
Source§impl Default for SpinnerStyle
impl Default for SpinnerStyle
Source§fn default() -> SpinnerStyle
fn default() -> SpinnerStyle
impl Eq for SpinnerStyle
Source§impl From<SpinnerStyle> for AnimationName
impl From<SpinnerStyle> for AnimationName
Source§fn from(style: SpinnerStyle) -> Self
fn from(style: SpinnerStyle) -> Self
Source§impl PartialEq for SpinnerStyle
impl PartialEq for SpinnerStyle
impl StructuralPartialEq for SpinnerStyle
Auto Trait Implementations§
impl Freeze for SpinnerStyle
impl RefUnwindSafe for SpinnerStyle
impl Send for SpinnerStyle
impl Sync for SpinnerStyle
impl Unpin for SpinnerStyle
impl UnsafeUnpin for SpinnerStyle
impl UnwindSafe for SpinnerStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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