pub struct SpinnerFrames {
    pub frames: Vec<&'static str>,
    pub interval: u16,
}
Expand description

A Struct that contains the data for a spinner. Frames is a Vec of &str, each &str is a frame of the spinner. Interval is the number of milliseconds to wait before moving to the next frame.

Fields§

§frames: Vec<&'static str>§interval: u16

Trait Implementations§

source§

impl Clone for SpinnerFrames

source§

fn clone(&self) -> SpinnerFrames

Returns a copy 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 SpinnerFrames

source§

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

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

impl From<Aesthetic> for SpinnerFrames

source§

fn from(_: Aesthetic) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Arc> for SpinnerFrames

source§

fn from(_: Arc) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Arrow> for SpinnerFrames

source§

fn from(_: Arrow) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Arrow2> for SpinnerFrames

source§

fn from(_: Arrow2) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Arrow3> for SpinnerFrames

source§

fn from(_: Arrow3) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Balloon> for SpinnerFrames

source§

fn from(_: Balloon) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Balloon2> for SpinnerFrames

source§

fn from(_: Balloon2) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<BetaWave> for SpinnerFrames

source§

fn from(_: BetaWave) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Binary> for SpinnerFrames

source§

fn from(_: Binary) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<BluePulse> for SpinnerFrames

source§

fn from(_: BluePulse) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Bounce> for SpinnerFrames

source§

fn from(_: Bounce) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<BouncingBall> for SpinnerFrames

source§

fn from(_: BouncingBall) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<BouncingBar> for SpinnerFrames

source§

fn from(_: BouncingBar) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<BoxBounce> for SpinnerFrames

source§

fn from(_: BoxBounce) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<BoxBounce2> for SpinnerFrames

source§

fn from(_: BoxBounce2) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Christmas> for SpinnerFrames

source§

fn from(_: Christmas) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Circle> for SpinnerFrames

source§

fn from(_: Circle) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<CircleHalves> for SpinnerFrames

source§

fn from(_: CircleHalves) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<CircleQuarters> for SpinnerFrames

source§

fn from(_: CircleQuarters) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Clock> for SpinnerFrames

source§

fn from(_: Clock) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Cute> for SpinnerFrames

source§

fn from(_: Cute) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Dots> for SpinnerFrames

source§

fn from(_: Dots) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Dots10> for SpinnerFrames

source§

fn from(_: Dots10) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Dots11> for SpinnerFrames

source§

fn from(_: Dots11) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Dots12> for SpinnerFrames

source§

fn from(_: Dots12) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Dots2> for SpinnerFrames

source§

fn from(_: Dots2) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Dots3> for SpinnerFrames

source§

fn from(_: Dots3) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Dots4> for SpinnerFrames

source§

fn from(_: Dots4) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Dots5> for SpinnerFrames

source§

fn from(_: Dots5) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Dots6> for SpinnerFrames

source§

fn from(_: Dots6) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Dots7> for SpinnerFrames

source§

fn from(_: Dots7) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Dots8> for SpinnerFrames

source§

fn from(_: Dots8) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Dots8bit> for SpinnerFrames

source§

fn from(_: Dots8bit) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Dots9> for SpinnerFrames

source§

fn from(_: Dots9) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Dqpb> for SpinnerFrames

source§

fn from(_: Dqpb) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Earth> for SpinnerFrames

source§

fn from(_: Earth) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<FingerDance> for SpinnerFrames

source§

fn from(_: FingerDance) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<FistBump> for SpinnerFrames

source§

fn from(_: FistBump) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Flip> for SpinnerFrames

source§

fn from(_: Flip) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Grenade> for SpinnerFrames

source§

fn from(_: Grenade) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<GrowHorizontal> for SpinnerFrames

source§

fn from(_: GrowHorizontal) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Hamburger> for SpinnerFrames

source§

fn from(_: Hamburger) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Hearts> for SpinnerFrames

source§

fn from(_: Hearts) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Layer> for SpinnerFrames

source§

fn from(_: Layer) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Line> for SpinnerFrames

source§

fn from(_: Line) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Line2> for SpinnerFrames

source§

fn from(_: Line2) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Material> for SpinnerFrames

source§

fn from(_: Material) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Mindblown> for SpinnerFrames

source§

fn from(_: Mindblown) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Monkey> for SpinnerFrames

source§

fn from(_: Monkey) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Moon> for SpinnerFrames

source§

fn from(_: Moon) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Noise> for SpinnerFrames

source§

fn from(_: Noise) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<OrangeBluePulse> for SpinnerFrames

source§

fn from(_: OrangeBluePulse) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<OrangePulse> for SpinnerFrames

source§

fn from(_: OrangePulse) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Pipe> for SpinnerFrames

source§

fn from(_: Pipe) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Point> for SpinnerFrames

source§

fn from(_: Point) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Pong> for SpinnerFrames

source§

fn from(_: Pong) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Runner> for SpinnerFrames

source§

fn from(_: Runner) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Shark> for SpinnerFrames

source§

fn from(_: Shark) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<SimpleDots> for SpinnerFrames

source§

fn from(_: SimpleDots) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<SimpleDotsScrolling> for SpinnerFrames

source§

fn from(_: SimpleDotsScrolling) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Smiley> for SpinnerFrames

source§

fn from(_: Smiley) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<SoccerHeader> for SpinnerFrames

source§

fn from(_: SoccerHeader) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Speaker> for SpinnerFrames

source§

fn from(_: Speaker) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<SquareCorners> for SpinnerFrames

source§

fn from(_: SquareCorners) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Squish> for SpinnerFrames

source§

fn from(_: Squish) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Star> for SpinnerFrames

source§

fn from(_: Star) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Star2> for SpinnerFrames

source§

fn from(_: Star2) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<TimeTravel> for SpinnerFrames

source§

fn from(_: TimeTravel) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Toggle> for SpinnerFrames

source§

fn from(_: Toggle) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Toggle10> for SpinnerFrames

source§

fn from(_: Toggle10) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Toggle11> for SpinnerFrames

source§

fn from(_: Toggle11) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Toggle12> for SpinnerFrames

source§

fn from(_: Toggle12) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Toggle13> for SpinnerFrames

source§

fn from(_: Toggle13) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Toggle2> for SpinnerFrames

source§

fn from(_: Toggle2) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Toggle3> for SpinnerFrames

source§

fn from(_: Toggle3) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Toggle4> for SpinnerFrames

source§

fn from(_: Toggle4) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Toggle5> for SpinnerFrames

source§

fn from(_: Toggle5) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Toggle6> for SpinnerFrames

source§

fn from(_: Toggle6) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Toggle7> for SpinnerFrames

source§

fn from(_: Toggle7) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Toggle8> for SpinnerFrames

source§

fn from(_: Toggle8) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Toggle9> for SpinnerFrames

source§

fn from(_: Toggle9) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Triangle> for SpinnerFrames

source§

fn from(_: Triangle) -> SpinnerFrames

Converts to this type from the input type.
source§

impl From<Weather> for SpinnerFrames

source§

fn from(_: Weather) -> SpinnerFrames

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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 Twhere T: Clone,

§

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, U> TryFrom<U> for Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.