pub struct CubicBezier {
pub p1: (f32, f32),
pub p2: (f32, f32),
}Expand description
A timing curve from (0, 0) to (1, 1) with two control points, the same
as CSS cubic-bezier().
Fields§
§p1: (f32, f32)First control point, x then y.
p2: (f32, f32)Second control point, x then y.
Implementations§
Source§impl CubicBezier
impl CubicBezier
Trait Implementations§
Source§impl Clone for CubicBezier
impl Clone for CubicBezier
Source§fn clone(&self) -> CubicBezier
fn clone(&self) -> CubicBezier
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 CubicBezier
Source§impl Debug for CubicBezier
impl Debug for CubicBezier
Source§impl PartialEq for CubicBezier
impl PartialEq 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