pub struct UnitBezier {
pub x1: f64,
pub y1: f64,
pub x2: f64,
pub y2: f64,
}Expand description
A timing curve from (0, 0) to (1, 1), with the control points (x1, y1)
and (x2, y2).
x1 and x2 are between 0 and 1.
See mln_unit_bezier in the
C API reference.
Fields§
§x1: f64§y1: f64§x2: f64§y2: f64Implementations§
Trait Implementations§
Source§impl Clone for UnitBezier
impl Clone for UnitBezier
Source§fn clone(&self) -> UnitBezier
fn clone(&self) -> UnitBezier
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 UnitBezier
Source§impl Debug for UnitBezier
impl Debug for UnitBezier
Source§impl Default for UnitBezier
impl Default for UnitBezier
Source§fn default() -> UnitBezier
fn default() -> UnitBezier
Returns the “default value” for a type. Read more
Source§impl PartialEq for UnitBezier
impl PartialEq for UnitBezier
impl StructuralPartialEq for UnitBezier
Auto Trait Implementations§
impl Freeze for UnitBezier
impl RefUnwindSafe for UnitBezier
impl Send for UnitBezier
impl Sync for UnitBezier
impl Unpin for UnitBezier
impl UnsafeUnpin for UnitBezier
impl UnwindSafe for UnitBezier
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more