pub struct SpinnerData<'a> {
pub frames: &'a [&'a str],
pub interval: u64,
}
Expand description
Data related to a spinner.
Each spinner consists of a number of frames and an interval. The interval is used for animation and should be the amount of milliseconds between each frame.
Frames are cycled through, meaning that if you reach the last element inside the frames’ array, you should wrap around and start again at the beginning.
Fields§
§frames: &'a [&'a str]
§interval: u64
Trait Implementations§
Source§impl<'a> Clone for SpinnerData<'a>
impl<'a> Clone for SpinnerData<'a>
Source§fn clone(&self) -> SpinnerData<'a>
fn clone(&self) -> SpinnerData<'a>
Returns a duplicate 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<'a> Debug for SpinnerData<'a>
impl<'a> Debug for SpinnerData<'a>
Source§impl<'a> Hash for SpinnerData<'a>
impl<'a> Hash for SpinnerData<'a>
Source§impl<'a> PartialEq for SpinnerData<'a>
impl<'a> PartialEq for SpinnerData<'a>
impl<'a> Copy for SpinnerData<'a>
impl<'a> Eq for SpinnerData<'a>
impl<'a> StructuralPartialEq for SpinnerData<'a>
Auto Trait Implementations§
impl<'a> Freeze for SpinnerData<'a>
impl<'a> RefUnwindSafe for SpinnerData<'a>
impl<'a> Send for SpinnerData<'a>
impl<'a> Sync for SpinnerData<'a>
impl<'a> Unpin for SpinnerData<'a>
impl<'a> UnwindSafe for SpinnerData<'a>
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