pub enum TimingFunction {
Linear,
CubicBezier(f32, f32, f32, f32),
Steps(u32, bool),
}Expand description
イージング関数。CSS の transition-timing-function / animation-timing-function。
Variants§
Linear
CubicBezier(f32, f32, f32, f32)
3次ベジェ制御点 (x1, y1, x2, y2)。ease/ease-in/out/in-out もこれで表現。
Steps(u32, bool)
steps(n, jump-start|jump-end)。bool=jump_start。
Implementations§
Trait Implementations§
Source§impl Clone for TimingFunction
impl Clone for TimingFunction
Source§fn clone(&self) -> TimingFunction
fn clone(&self) -> TimingFunction
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 TimingFunction
impl Debug for TimingFunction
Source§impl PartialEq for TimingFunction
impl PartialEq for TimingFunction
Source§fn eq(&self, other: &TimingFunction) -> bool
fn eq(&self, other: &TimingFunction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TimingFunction
Auto Trait Implementations§
impl Freeze for TimingFunction
impl RefUnwindSafe for TimingFunction
impl Send for TimingFunction
impl Sync for TimingFunction
impl Unpin for TimingFunction
impl UnsafeUnpin for TimingFunction
impl UnwindSafe for TimingFunction
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