#[repr(transparent)]pub struct PHASECurveType(pub NSInteger);Available on crate feature
PHASETypes only.Expand description
Curve types.
A curve of the form y = x.
A curve of the form y = x^2.
A curve of the form y = 1 / x^2.
A curve of the form y = x^3.
A curve of the form y = 1 / x^3.
A sine curve.
An inverse sine curve.
A sigmoid curve. Also known as an s-curve, slow at the ends and quick in the middle.
An inverse sigmoid curve. Also known as an inverse s-curve, quick at the ends and slow in the middle.
Holds the start value for the duration of the curve.
Jumps to the end value and holds it for the duration of the curve.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl PHASECurveType
impl PHASECurveType
pub const Linear: Self
pub const Squared: Self
pub const InverseSquared: Self
pub const Cubed: Self
pub const InverseCubed: Self
pub const Sine: Self
pub const InverseSine: Self
pub const Sigmoid: Self
pub const InverseSigmoid: Self
pub const HoldStartValue: Self
pub const JumpToEndValue: Self
Trait Implementations§
Source§impl Clone for PHASECurveType
impl Clone for PHASECurveType
Source§fn clone(&self) -> PHASECurveType
fn clone(&self) -> PHASECurveType
Returns a duplicate of the value. Read more
1.0.0 · 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 PHASECurveType
impl Debug for PHASECurveType
Source§impl Encode for PHASECurveType
impl Encode for PHASECurveType
Source§impl Hash for PHASECurveType
impl Hash for PHASECurveType
Source§impl Ord for PHASECurveType
impl Ord for PHASECurveType
Source§fn cmp(&self, other: &PHASECurveType) -> Ordering
fn cmp(&self, other: &PHASECurveType) -> Ordering
1.21.0 · 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
Source§impl PartialEq for PHASECurveType
impl PartialEq for PHASECurveType
Source§impl PartialOrd for PHASECurveType
impl PartialOrd for PHASECurveType
Source§impl RefEncode for PHASECurveType
impl RefEncode for PHASECurveType
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for PHASECurveType
impl Eq for PHASECurveType
impl StructuralPartialEq for PHASECurveType
Auto Trait Implementations§
impl Freeze for PHASECurveType
impl RefUnwindSafe for PHASECurveType
impl Send for PHASECurveType
impl Sync for PHASECurveType
impl Unpin for PHASECurveType
impl UnwindSafe for PHASECurveType
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,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.