pub struct CubicBezier {
pub x1: f32,
pub y1: f32,
pub x2: f32,
pub y2: f32,
}Expand description
A CSS cubic-bezier(x1, y1, x2, y2) timing curve.
x1 and x2 lie in 0..=1, which keeps the curve a function of its
input. y1 and y2 are unbounded: a curve may overshoot and come back.
Fields§
§x1: f32Horizontal coordinate of the first control point, in 0..=1.
y1: f32Vertical coordinate of the first control point.
x2: f32Horizontal coordinate of the second control point, in 0..=1.
y2: f32Vertical coordinate of the second control point.
Implementations§
Trait Implementations§
Source§impl Clone for CubicBezier
impl Clone for CubicBezier
impl Copy for CubicBezier
Source§impl Debug for CubicBezier
impl Debug for CubicBezier
Source§impl<'de> Deserialize<'de> for CubicBezier
impl<'de> Deserialize<'de> for CubicBezier
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 CubicBezier
impl PartialEq for CubicBezier
Source§impl Serialize for CubicBezier
impl Serialize for CubicBezier
impl StructuralPartialEq for CubicBezier
Auto Trait Implementations§
impl Freeze for CubicBezier
impl RefUnwindSafe for CubicBezier
impl Send for CubicBezier
impl Sync for CubicBezier
impl Unpin for CubicBezier
impl UnsafeUnpin for CubicBezier
impl UnwindSafe for CubicBezier
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