#[repr(C)]pub struct AnimationTimingBezier {
pub x1: u16,
pub y1: i16,
pub x2: u16,
pub y2: i16,
}Expand description
A cubic-bezier(x1, y1, x2, y2) control-point pair in PERMILLE.
Permille keeps the timing enum Eq + Hash + Ord-capable (it lives inside
CssProperty). CSS clamps the x coordinates to [0, 1] (0..=1000 here);
the y coordinates may overshoot, so they are signed (±32.767 in curve
space — far beyond any real easing).
Fields§
§x1: u16§y1: i16§x2: u16§y2: i16Trait Implementations§
Source§impl Clone for AnimationTimingBezier
impl Clone for AnimationTimingBezier
Source§fn clone(&self) -> AnimationTimingBezier
fn clone(&self) -> AnimationTimingBezier
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 moreimpl Copy for AnimationTimingBezier
Source§impl Debug for AnimationTimingBezier
impl Debug for AnimationTimingBezier
impl Eq for AnimationTimingBezier
Source§impl Hash for AnimationTimingBezier
impl Hash for AnimationTimingBezier
Source§impl Ord for AnimationTimingBezier
impl Ord for AnimationTimingBezier
Source§fn cmp(&self, other: &AnimationTimingBezier) -> Ordering
fn cmp(&self, other: &AnimationTimingBezier) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AnimationTimingBezier
impl PartialEq for AnimationTimingBezier
Source§impl PartialOrd for AnimationTimingBezier
impl PartialOrd for AnimationTimingBezier
impl StructuralPartialEq for AnimationTimingBezier
Auto Trait Implementations§
impl Freeze for AnimationTimingBezier
impl RefUnwindSafe for AnimationTimingBezier
impl Send for AnimationTimingBezier
impl Sync for AnimationTimingBezier
impl Unpin for AnimationTimingBezier
impl UnsafeUnpin for AnimationTimingBezier
impl UnwindSafe for AnimationTimingBezier
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