pub struct ChartAnimation {
pub enabled: bool,
pub kind: ChartAnimationKind,
pub duration_ms: u64,
pub delay_ms: u64,
pub stagger_ms: u64,
pub easing: ChartEasing,
pub reduced_motion_safe: bool,
pub repeat: bool,
}Fields§
§enabled: bool§kind: ChartAnimationKind§duration_ms: u64§delay_ms: u64§stagger_ms: u64§easing: ChartEasing§reduced_motion_safe: bool§repeat: boolImplementations§
Source§impl ChartAnimation
impl ChartAnimation
pub fn disabled() -> Self
pub fn enter(kind: ChartAnimationKind) -> Self
pub fn duration_ms(self, duration_ms: u64) -> Self
pub fn delay_ms(self, delay_ms: u64) -> Self
pub fn stagger_ms(self, stagger_ms: u64) -> Self
pub fn easing(self, easing: ChartEasing) -> Self
pub fn reduced_motion_safe(self, safe: bool) -> Self
pub fn repeat(self, repeat: bool) -> Self
pub fn progress_at(&self, elapsed_ms: u64, item_index: usize) -> f32
Trait Implementations§
Source§impl Clone for ChartAnimation
impl Clone for ChartAnimation
Source§fn clone(&self) -> ChartAnimation
fn clone(&self) -> ChartAnimation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChartAnimation
impl Debug for ChartAnimation
Source§impl Default for ChartAnimation
impl Default for ChartAnimation
Source§impl<'de> Deserialize<'de> for ChartAnimation
impl<'de> Deserialize<'de> for ChartAnimation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ChartAnimation
impl PartialEq for ChartAnimation
Source§fn eq(&self, other: &ChartAnimation) -> bool
fn eq(&self, other: &ChartAnimation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChartAnimation
impl Serialize for ChartAnimation
impl StructuralPartialEq for ChartAnimation
Auto Trait Implementations§
impl Freeze for ChartAnimation
impl RefUnwindSafe for ChartAnimation
impl Send for ChartAnimation
impl Sync for ChartAnimation
impl Unpin for ChartAnimation
impl UnsafeUnpin for ChartAnimation
impl UnwindSafe for ChartAnimation
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.