pub struct Timing {
pub duration_ms: f32,
pub easing: Easing,
pub delay_ms: f32,
pub frame_rate: Option<f32>,
}Expand description
How a timing animation moves (TS’s defaults: 300 ms, ease in-out, no delay).
Fields§
§duration_ms: f32How long it takes, in milliseconds.
easing: EasingThe curve.
delay_ms: f32How long it waits before it starts, in milliseconds.
frame_rate: Option<f32>The highest frame rate it needs, in Hz (TS’s frameRate); None:
the screen’s highest (Driver::frame_rate).
Implementations§
Trait Implementations§
impl Copy for Timing
Source§impl JsValue for Timing
A timing a component’s prop takes (TS { duration?: number; easing?: Easing; delay?: number; frameRate?: number }): the options of
AnimatedValue.timing in nsh/animated, with its defaults (300 ms,
ease in-out, no delay, the screen’s highest rate).
impl JsValue for Timing
A timing a component’s prop takes (TS { duration?: number; easing?: Easing; delay?: number; frameRate?: number }): the options of
AnimatedValue.timing in nsh/animated, with its defaults (300 ms,
ease in-out, no delay, the screen’s highest rate).
impl StructuralPartialEq for Timing
Auto Trait Implementations§
impl Forget for Timing
impl Freeze for Timing
impl Move for Timing
impl RefUnwindSafe for Timing
impl Send for Timing
impl Sync for Timing
impl Unpin for Timing
impl UnsafeUnpin for Timing
impl UnwindSafe for Timing
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> CallbackArgs for Twhere
T: Ret,
impl<T> CallbackArgs for Twhere
T: Ret,
Source§fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
Its TypeScript parameters, named
names (name: string, amount: number), or without names value for one and a, b, … for
several.Source§fn into_js_args<'a>(
self,
host: &'a dyn JsHost,
) -> Result<Vec<JsOwned<'a>>, PropError>
fn into_js_args<'a>( self, host: &'a dyn JsHost, ) -> Result<Vec<JsOwned<'a>>, PropError>
The arguments as JS values.