Struct spinoff::spinners::SpinnerFrames
source · 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
impl Clone for SpinnerFrames
source§fn clone(&self) -> SpinnerFrames
fn clone(&self) -> SpinnerFrames
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 moresource§impl Debug for SpinnerFrames
impl Debug for SpinnerFrames
source§impl From<Aesthetic> for SpinnerFrames
impl From<Aesthetic> for SpinnerFrames
source§fn from(_: Aesthetic) -> SpinnerFrames
fn from(_: Aesthetic) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Arc> for SpinnerFrames
impl From<Arc> for SpinnerFrames
source§fn from(_: Arc) -> SpinnerFrames
fn from(_: Arc) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Arrow> for SpinnerFrames
impl From<Arrow> for SpinnerFrames
source§fn from(_: Arrow) -> SpinnerFrames
fn from(_: Arrow) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Arrow2> for SpinnerFrames
impl From<Arrow2> for SpinnerFrames
source§fn from(_: Arrow2) -> SpinnerFrames
fn from(_: Arrow2) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Arrow3> for SpinnerFrames
impl From<Arrow3> for SpinnerFrames
source§fn from(_: Arrow3) -> SpinnerFrames
fn from(_: Arrow3) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Balloon> for SpinnerFrames
impl From<Balloon> for SpinnerFrames
source§fn from(_: Balloon) -> SpinnerFrames
fn from(_: Balloon) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Balloon2> for SpinnerFrames
impl From<Balloon2> for SpinnerFrames
source§fn from(_: Balloon2) -> SpinnerFrames
fn from(_: Balloon2) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<BetaWave> for SpinnerFrames
impl From<BetaWave> for SpinnerFrames
source§fn from(_: BetaWave) -> SpinnerFrames
fn from(_: BetaWave) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Binary> for SpinnerFrames
impl From<Binary> for SpinnerFrames
source§fn from(_: Binary) -> SpinnerFrames
fn from(_: Binary) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<BluePulse> for SpinnerFrames
impl From<BluePulse> for SpinnerFrames
source§fn from(_: BluePulse) -> SpinnerFrames
fn from(_: BluePulse) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Bounce> for SpinnerFrames
impl From<Bounce> for SpinnerFrames
source§fn from(_: Bounce) -> SpinnerFrames
fn from(_: Bounce) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<BouncingBall> for SpinnerFrames
impl From<BouncingBall> for SpinnerFrames
source§fn from(_: BouncingBall) -> SpinnerFrames
fn from(_: BouncingBall) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<BouncingBar> for SpinnerFrames
impl From<BouncingBar> for SpinnerFrames
source§fn from(_: BouncingBar) -> SpinnerFrames
fn from(_: BouncingBar) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<BoxBounce> for SpinnerFrames
impl From<BoxBounce> for SpinnerFrames
source§fn from(_: BoxBounce) -> SpinnerFrames
fn from(_: BoxBounce) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<BoxBounce2> for SpinnerFrames
impl From<BoxBounce2> for SpinnerFrames
source§fn from(_: BoxBounce2) -> SpinnerFrames
fn from(_: BoxBounce2) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Christmas> for SpinnerFrames
impl From<Christmas> for SpinnerFrames
source§fn from(_: Christmas) -> SpinnerFrames
fn from(_: Christmas) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Circle> for SpinnerFrames
impl From<Circle> for SpinnerFrames
source§fn from(_: Circle) -> SpinnerFrames
fn from(_: Circle) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<CircleHalves> for SpinnerFrames
impl From<CircleHalves> for SpinnerFrames
source§fn from(_: CircleHalves) -> SpinnerFrames
fn from(_: CircleHalves) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<CircleQuarters> for SpinnerFrames
impl From<CircleQuarters> for SpinnerFrames
source§fn from(_: CircleQuarters) -> SpinnerFrames
fn from(_: CircleQuarters) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Clock> for SpinnerFrames
impl From<Clock> for SpinnerFrames
source§fn from(_: Clock) -> SpinnerFrames
fn from(_: Clock) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Cute> for SpinnerFrames
impl From<Cute> for SpinnerFrames
source§fn from(_: Cute) -> SpinnerFrames
fn from(_: Cute) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Dots> for SpinnerFrames
impl From<Dots> for SpinnerFrames
source§fn from(_: Dots) -> SpinnerFrames
fn from(_: Dots) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Dots10> for SpinnerFrames
impl From<Dots10> for SpinnerFrames
source§fn from(_: Dots10) -> SpinnerFrames
fn from(_: Dots10) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Dots11> for SpinnerFrames
impl From<Dots11> for SpinnerFrames
source§fn from(_: Dots11) -> SpinnerFrames
fn from(_: Dots11) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Dots12> for SpinnerFrames
impl From<Dots12> for SpinnerFrames
source§fn from(_: Dots12) -> SpinnerFrames
fn from(_: Dots12) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Dots2> for SpinnerFrames
impl From<Dots2> for SpinnerFrames
source§fn from(_: Dots2) -> SpinnerFrames
fn from(_: Dots2) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Dots3> for SpinnerFrames
impl From<Dots3> for SpinnerFrames
source§fn from(_: Dots3) -> SpinnerFrames
fn from(_: Dots3) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Dots4> for SpinnerFrames
impl From<Dots4> for SpinnerFrames
source§fn from(_: Dots4) -> SpinnerFrames
fn from(_: Dots4) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Dots5> for SpinnerFrames
impl From<Dots5> for SpinnerFrames
source§fn from(_: Dots5) -> SpinnerFrames
fn from(_: Dots5) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Dots6> for SpinnerFrames
impl From<Dots6> for SpinnerFrames
source§fn from(_: Dots6) -> SpinnerFrames
fn from(_: Dots6) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Dots7> for SpinnerFrames
impl From<Dots7> for SpinnerFrames
source§fn from(_: Dots7) -> SpinnerFrames
fn from(_: Dots7) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Dots8> for SpinnerFrames
impl From<Dots8> for SpinnerFrames
source§fn from(_: Dots8) -> SpinnerFrames
fn from(_: Dots8) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Dots8bit> for SpinnerFrames
impl From<Dots8bit> for SpinnerFrames
source§fn from(_: Dots8bit) -> SpinnerFrames
fn from(_: Dots8bit) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Dots9> for SpinnerFrames
impl From<Dots9> for SpinnerFrames
source§fn from(_: Dots9) -> SpinnerFrames
fn from(_: Dots9) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Dqpb> for SpinnerFrames
impl From<Dqpb> for SpinnerFrames
source§fn from(_: Dqpb) -> SpinnerFrames
fn from(_: Dqpb) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Earth> for SpinnerFrames
impl From<Earth> for SpinnerFrames
source§fn from(_: Earth) -> SpinnerFrames
fn from(_: Earth) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<FingerDance> for SpinnerFrames
impl From<FingerDance> for SpinnerFrames
source§fn from(_: FingerDance) -> SpinnerFrames
fn from(_: FingerDance) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<FistBump> for SpinnerFrames
impl From<FistBump> for SpinnerFrames
source§fn from(_: FistBump) -> SpinnerFrames
fn from(_: FistBump) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Flip> for SpinnerFrames
impl From<Flip> for SpinnerFrames
source§fn from(_: Flip) -> SpinnerFrames
fn from(_: Flip) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Grenade> for SpinnerFrames
impl From<Grenade> for SpinnerFrames
source§fn from(_: Grenade) -> SpinnerFrames
fn from(_: Grenade) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<GrowHorizontal> for SpinnerFrames
impl From<GrowHorizontal> for SpinnerFrames
source§fn from(_: GrowHorizontal) -> SpinnerFrames
fn from(_: GrowHorizontal) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Hamburger> for SpinnerFrames
impl From<Hamburger> for SpinnerFrames
source§fn from(_: Hamburger) -> SpinnerFrames
fn from(_: Hamburger) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Hearts> for SpinnerFrames
impl From<Hearts> for SpinnerFrames
source§fn from(_: Hearts) -> SpinnerFrames
fn from(_: Hearts) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Layer> for SpinnerFrames
impl From<Layer> for SpinnerFrames
source§fn from(_: Layer) -> SpinnerFrames
fn from(_: Layer) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Line> for SpinnerFrames
impl From<Line> for SpinnerFrames
source§fn from(_: Line) -> SpinnerFrames
fn from(_: Line) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Line2> for SpinnerFrames
impl From<Line2> for SpinnerFrames
source§fn from(_: Line2) -> SpinnerFrames
fn from(_: Line2) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Material> for SpinnerFrames
impl From<Material> for SpinnerFrames
source§fn from(_: Material) -> SpinnerFrames
fn from(_: Material) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Mindblown> for SpinnerFrames
impl From<Mindblown> for SpinnerFrames
source§fn from(_: Mindblown) -> SpinnerFrames
fn from(_: Mindblown) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Monkey> for SpinnerFrames
impl From<Monkey> for SpinnerFrames
source§fn from(_: Monkey) -> SpinnerFrames
fn from(_: Monkey) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Moon> for SpinnerFrames
impl From<Moon> for SpinnerFrames
source§fn from(_: Moon) -> SpinnerFrames
fn from(_: Moon) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Noise> for SpinnerFrames
impl From<Noise> for SpinnerFrames
source§fn from(_: Noise) -> SpinnerFrames
fn from(_: Noise) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<OrangeBluePulse> for SpinnerFrames
impl From<OrangeBluePulse> for SpinnerFrames
source§fn from(_: OrangeBluePulse) -> SpinnerFrames
fn from(_: OrangeBluePulse) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<OrangePulse> for SpinnerFrames
impl From<OrangePulse> for SpinnerFrames
source§fn from(_: OrangePulse) -> SpinnerFrames
fn from(_: OrangePulse) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Pipe> for SpinnerFrames
impl From<Pipe> for SpinnerFrames
source§fn from(_: Pipe) -> SpinnerFrames
fn from(_: Pipe) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Point> for SpinnerFrames
impl From<Point> for SpinnerFrames
source§fn from(_: Point) -> SpinnerFrames
fn from(_: Point) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Pong> for SpinnerFrames
impl From<Pong> for SpinnerFrames
source§fn from(_: Pong) -> SpinnerFrames
fn from(_: Pong) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Runner> for SpinnerFrames
impl From<Runner> for SpinnerFrames
source§fn from(_: Runner) -> SpinnerFrames
fn from(_: Runner) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Shark> for SpinnerFrames
impl From<Shark> for SpinnerFrames
source§fn from(_: Shark) -> SpinnerFrames
fn from(_: Shark) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<SimpleDots> for SpinnerFrames
impl From<SimpleDots> for SpinnerFrames
source§fn from(_: SimpleDots) -> SpinnerFrames
fn from(_: SimpleDots) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<SimpleDotsScrolling> for SpinnerFrames
impl From<SimpleDotsScrolling> for SpinnerFrames
source§fn from(_: SimpleDotsScrolling) -> SpinnerFrames
fn from(_: SimpleDotsScrolling) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Smiley> for SpinnerFrames
impl From<Smiley> for SpinnerFrames
source§fn from(_: Smiley) -> SpinnerFrames
fn from(_: Smiley) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<SoccerHeader> for SpinnerFrames
impl From<SoccerHeader> for SpinnerFrames
source§fn from(_: SoccerHeader) -> SpinnerFrames
fn from(_: SoccerHeader) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Speaker> for SpinnerFrames
impl From<Speaker> for SpinnerFrames
source§fn from(_: Speaker) -> SpinnerFrames
fn from(_: Speaker) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<SquareCorners> for SpinnerFrames
impl From<SquareCorners> for SpinnerFrames
source§fn from(_: SquareCorners) -> SpinnerFrames
fn from(_: SquareCorners) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Squish> for SpinnerFrames
impl From<Squish> for SpinnerFrames
source§fn from(_: Squish) -> SpinnerFrames
fn from(_: Squish) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Star> for SpinnerFrames
impl From<Star> for SpinnerFrames
source§fn from(_: Star) -> SpinnerFrames
fn from(_: Star) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Star2> for SpinnerFrames
impl From<Star2> for SpinnerFrames
source§fn from(_: Star2) -> SpinnerFrames
fn from(_: Star2) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<TimeTravel> for SpinnerFrames
impl From<TimeTravel> for SpinnerFrames
source§fn from(_: TimeTravel) -> SpinnerFrames
fn from(_: TimeTravel) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Toggle> for SpinnerFrames
impl From<Toggle> for SpinnerFrames
source§fn from(_: Toggle) -> SpinnerFrames
fn from(_: Toggle) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Toggle10> for SpinnerFrames
impl From<Toggle10> for SpinnerFrames
source§fn from(_: Toggle10) -> SpinnerFrames
fn from(_: Toggle10) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Toggle11> for SpinnerFrames
impl From<Toggle11> for SpinnerFrames
source§fn from(_: Toggle11) -> SpinnerFrames
fn from(_: Toggle11) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Toggle12> for SpinnerFrames
impl From<Toggle12> for SpinnerFrames
source§fn from(_: Toggle12) -> SpinnerFrames
fn from(_: Toggle12) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Toggle13> for SpinnerFrames
impl From<Toggle13> for SpinnerFrames
source§fn from(_: Toggle13) -> SpinnerFrames
fn from(_: Toggle13) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Toggle2> for SpinnerFrames
impl From<Toggle2> for SpinnerFrames
source§fn from(_: Toggle2) -> SpinnerFrames
fn from(_: Toggle2) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Toggle3> for SpinnerFrames
impl From<Toggle3> for SpinnerFrames
source§fn from(_: Toggle3) -> SpinnerFrames
fn from(_: Toggle3) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Toggle4> for SpinnerFrames
impl From<Toggle4> for SpinnerFrames
source§fn from(_: Toggle4) -> SpinnerFrames
fn from(_: Toggle4) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Toggle5> for SpinnerFrames
impl From<Toggle5> for SpinnerFrames
source§fn from(_: Toggle5) -> SpinnerFrames
fn from(_: Toggle5) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Toggle6> for SpinnerFrames
impl From<Toggle6> for SpinnerFrames
source§fn from(_: Toggle6) -> SpinnerFrames
fn from(_: Toggle6) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Toggle7> for SpinnerFrames
impl From<Toggle7> for SpinnerFrames
source§fn from(_: Toggle7) -> SpinnerFrames
fn from(_: Toggle7) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Toggle8> for SpinnerFrames
impl From<Toggle8> for SpinnerFrames
source§fn from(_: Toggle8) -> SpinnerFrames
fn from(_: Toggle8) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Toggle9> for SpinnerFrames
impl From<Toggle9> for SpinnerFrames
source§fn from(_: Toggle9) -> SpinnerFrames
fn from(_: Toggle9) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Triangle> for SpinnerFrames
impl From<Triangle> for SpinnerFrames
source§fn from(_: Triangle) -> SpinnerFrames
fn from(_: Triangle) -> SpinnerFrames
Converts to this type from the input type.
source§impl From<Weather> for SpinnerFrames
impl From<Weather> for SpinnerFrames
source§fn from(_: Weather) -> SpinnerFrames
fn from(_: Weather) -> SpinnerFrames
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for SpinnerFrames
impl Send for SpinnerFrames
impl Sync for SpinnerFrames
impl Unpin for SpinnerFrames
impl UnwindSafe for SpinnerFrames
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