Enum console_utils::input::SpinnerType
source · 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 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