pub enum MaterialMotion {}Expand description
The M3 Expressive duration/easing token namespace — an uninhabited type
(no instance is ever constructed) carrying only associated constants,
mirroring the Dart source’s abstract final class M3EMotion static
namespace. See the module docs for the full Dart → Rust naming map and
source citation.
Implementations§
Source§impl MaterialMotion
impl MaterialMotion
Sourcepub const EXTRA_LONG_1: Duration
pub const EXTRA_LONG_1: Duration
700ms.
Sourcepub const EXTRA_LONG_2: Duration
pub const EXTRA_LONG_2: Duration
800ms.
Sourcepub const EXTRA_LONG_3: Duration
pub const EXTRA_LONG_3: Duration
900ms.
Sourcepub const EXTRA_LONG_4: Duration
pub const EXTRA_LONG_4: Duration
1000ms.
Sourcepub const STANDARD_ACCELERATE: Curve
pub const STANDARD_ACCELERATE: Curve
Standard-accelerate easing — cubic-bezier(0.3, 0, 1, 1).
Sourcepub const STANDARD_DECELERATE: Curve
pub const STANDARD_DECELERATE: Curve
Standard-decelerate easing — cubic-bezier(0, 0, 0, 1).
Sourcepub const EMPHASIZED: Curve
pub const EMPHASIZED: Curve
Emphasized easing — cubic-bezier(0.2, 0, 0, 1) (identical control
points to STANDARD in the Dart source).
Sourcepub const EMPHASIZED_ACCELERATE: Curve
pub const EMPHASIZED_ACCELERATE: Curve
Emphasized-accelerate easing — cubic-bezier(0.3, 0, 0.8, 0.15).
Sourcepub const EMPHASIZED_DECELERATE: Curve
pub const EMPHASIZED_DECELERATE: Curve
Emphasized-decelerate easing — cubic-bezier(0.05, 0.7, 0.1, 1).
Sourcepub const LINEAR: Curve
pub const LINEAR: Curve
Linear easing — cubic-bezier(0, 0, 1, 1), transcribed as a Cubic
(not Curve::Linear) to match the Dart source’s own
Cubic(0, 0, 1, 1) literal; the two are mathematically identical.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MaterialMotion
impl RefUnwindSafe for MaterialMotion
impl Send for MaterialMotion
impl Sync for MaterialMotion
impl Unpin for MaterialMotion
impl UnsafeUnpin for MaterialMotion
impl UnwindSafe for MaterialMotion
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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>
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)
&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)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.