Spinners

Enum Spinners 

Source
pub enum Spinners {
Show 81 variants Dots, Dots2, Dots3, Dots4, Dots5, Dots6, Dots7, Dots8, Dots9, Dots10, Dots11, Dots8Bit, Arrow, Arrow2, Arrow3, BouncingBar, BouncingBall, Smiley, Monkey, Hearts, Clock, Earth, Material, Moon, Runner, Pong, Shark, Dqpb, Weather, Christmas, Grenade, Point, Layer, BetaWave, FingerDance, FistBump, SoccerHeader, Mindblown, Speaker, OrangePulse, BluePulse, OrangeBluePulse, TimeTravel, Aesthetic, Pipe, Star, Star2, Flip, Hamburger, GrowVertical, GrowHorizontal, Balloon, Balloon2, Noise, Bounce, BoxBounce, BoxBounce2, Triangle, Arc, Circle, SquareCorners, CircleQuaters, CircleHalves, Squish, Toggle, Toggle2, Toggle3, Toggle4, Toggle5, Toggle6, Toggle7, Toggle8, Toggle9, Toggle10, Toggle11, Toggle12, Toggle13, Line, Line2, SimpleDots, SimpleDotsScrolling,
}
Expand description

The enum of all available spinners

Implements Display, EnumString and EnumIter traits for easy usage.

Additionally implements Into<Spinner> trait to be easily converted into a Spinner struct.

Can also be iterated over

Variants§

§

Dots

The Dots spinner

§

Dots2

The Dots2 spinner

§

Dots3

The Dots3 spinner

§

Dots4

The Dots4 spinner

§

Dots5

The Dots5 spinner

§

Dots6

The Dots6 spinner

§

Dots7

The Dots7 spinner

§

Dots8

The Dots8 spinner

§

Dots9

The Dots9 spinner

§

Dots10

The Dots10 spinner

§

Dots11

The Dots11 spinner

§

Dots8Bit

The Dots8Bit spinner

§

Arrow

The Arrow spinner

§

Arrow2

The Arrow2 spinner

§

Arrow3

The Arrow3 spinner

§

BouncingBar

The BouncingBar spinner

§

BouncingBall

The BouncingBall spinner

§

Smiley

The Smiley spinner

§

Monkey

The Monkey spinner

§

Hearts

The Hearts spinner

§

Clock

The Clock spinner

§

Earth

The Earth spinner

§

Material

The Material spinner

§

Moon

The Moon spinner

§

Runner

The Runner spinner

§

Pong

The Pong spinner

§

Shark

The Shark spinner

§

Dqpb

The Dqpb spinner

§

Weather

The Weather spinner

§

Christmas

The Christmas spinner

§

Grenade

The Grenade spinner

§

Point

The Point spinner

§

Layer

The Layer spinner

§

BetaWave

The BetaWave spinner

§

FingerDance

The FingerDance spinner

§

FistBump

The FistBump spinner

§

SoccerHeader

The SoccerHeader spinner

§

Mindblown

The Mindblown spinner

§

Speaker

The Speaker spinner

§

OrangePulse

The OrangePulse spinner

§

BluePulse

The BluePulse spinner

§

OrangeBluePulse

The OrangeBluePulse spinner

§

TimeTravel

The TimeTravel spinner

§

Aesthetic

The Aesthetic Spinner

§

Pipe

The Pipe spinner

§

Star

The Star spinner

§

Star2

The Star2 spinner

§

Flip

The Flip spinner

§

Hamburger

The Hamburger spinner

§

GrowVertical

The GrowVertical spinner

§

GrowHorizontal

The GrowHorizontal spinner

§

Balloon

The Balloon spinner

§

Balloon2

The Balloon2 spinner

§

Noise

The Noise spinner

§

Bounce

The Bounce spinner

§

BoxBounce

The BoxBounce spinner

§

BoxBounce2

The BoxBounce2 spinner

§

Triangle

The Triangle Spinner

§

Arc

The Arc spinner

§

Circle

The Circle spinner

§

SquareCorners

The SquareCorners spinner

§

CircleQuaters

The CircleQuarters spinner

§

CircleHalves

The CircleHalves spinner

§

Squish

The Squish spinner

§

Toggle

The Toggle spinner

§

Toggle2

The Toggle2 spinner

§

Toggle3

The Toggle3 spinner

§

Toggle4

The Toggle4 spinner

§

Toggle5

The Toggle5 spinner

§

Toggle6

The Toggle6 spinner

§

Toggle7

The Toggle7 spinner

§

Toggle8

The Toggle8 spinner

§

Toggle9

The Toggle9 spinner

§

Toggle10

The Toggle10 spinner

§

Toggle11

The Toggle11 spinner

§

Toggle12

The Toggle12 spinner

§

Toggle13

The Toggle13 spinner

§

Line

The Line spinner

§

Line2

The Line2 spinner

§

SimpleDots

The SimpleDots spinner

§

SimpleDotsScrolling

The SimpleDotsScrolling spinner

Implementations§

Source§

impl Spinners

Source

pub fn get_frames(&self) -> Vec<&'static str>

Gets the frames for any given spinner

Trait Implementations§

Source§

impl Clone for Spinners

Source§

fn clone(&self) -> Spinners

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Spinners

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Spinners

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl From<Spinners> for Spinner

Source§

fn from(spinner: Spinners) -> Self

Converts to this type from the input type.
Source§

impl FromStr for Spinners

Source§

type Err = ParseError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Spinners, <Self as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Source§

impl IntoEnumIterator for Spinners

Source§

impl TryFrom<&str> for Spinners

Source§

type Error = ParseError

The type returned in the event of a conversion error.
Source§

fn try_from(s: &str) -> Result<Spinners, <Self as TryFrom<&str>>::Error>

Performs the conversion.
Source§

impl Copy for Spinners

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.