pub struct CellFrame {
pub index: usize,
pub color: Option<Rgb>,
pub finished: bool,
pub next: Option<Duration>,
pub smooth: bool,
}Expand description
What an animation shows at one moment.
Fields§
§index: usizeThe frame shown, counted from 0.
color: Option<Rgb>Its colour, or None when the frame has no colour and the widget gave none.
finished: boolWhether a Playback::Once animation has played to its end.
next: Option<Duration>How long until the frame changes; None when it stands still.
smooth: boolWhether the colour moves between frame changes (a pulse or a blend), so the cell needs smooth redraws.
Trait Implementations§
impl Copy for CellFrame
impl StructuralPartialEq for CellFrame
Auto Trait Implementations§
impl Freeze for CellFrame
impl RefUnwindSafe for CellFrame
impl Send for CellFrame
impl Sync for CellFrame
impl Unpin for CellFrame
impl UnsafeUnpin for CellFrame
impl UnwindSafe for CellFrame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more