pub enum SpinnerType {
Standard,
Dots,
Box,
Flip,
Custom(Vec<&'static str>),
}Expand description
Enumeration representing different types of spinners.
Variants§
Implementations§
Source§impl SpinnerType
impl SpinnerType
Sourcepub fn to_frames(&self) -> Vec<&'static str>
pub fn to_frames(&self) -> Vec<&'static str>
Converts the spinner type to a vector of frames, gives back the following variants:
SpinnerType::Standard: Standard spinner with characters / - \ |.SpinnerType::Dots: Spinner with dots . .. … …..SpinnerType::Box: Spinner with box characters ▌ ▀ ▐ ▄.SpinnerType::Flip: Spinner with flip characters _ _ _ - \ ’ ´ - _ _ _.SpinnerType::Custom(frames): Custom spinner with user-defined frames.
Trait Implementations§
Source§impl Clone for SpinnerType
impl Clone for SpinnerType
Source§fn clone(&self) -> SpinnerType
fn clone(&self) -> SpinnerType
Returns a copy 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 SpinnerType
impl RefUnwindSafe for SpinnerType
impl Send for SpinnerType
impl Sync for SpinnerType
impl Unpin for SpinnerType
impl UnwindSafe for SpinnerType
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