Enum ark_api::world::AnimationCurve
source · #[repr(u32)]pub enum AnimationCurve {
Linear,
QuadraticEaseIn,
QuadraticEaseOut,
QuadraticEaseInOut,
}Variants§
Trait Implementations§
source§impl CheckedBitPattern for AnimationCurve
impl CheckedBitPattern for AnimationCurve
§type Bits = u32
type Bits = u32
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.source§fn is_valid_bit_pattern(
bits: &<AnimationCurve as CheckedBitPattern>::Bits
) -> bool
fn is_valid_bit_pattern( bits: &<AnimationCurve as CheckedBitPattern>::Bits ) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.source§impl Clone for AnimationCurve
impl Clone for AnimationCurve
source§fn clone(&self) -> AnimationCurve
fn clone(&self) -> AnimationCurve
Returns a copy 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 AnimationCurve
impl Debug for AnimationCurve
source§impl Hash for AnimationCurve
impl Hash for AnimationCurve
source§impl PartialEq<AnimationCurve> for AnimationCurve
impl PartialEq<AnimationCurve> for AnimationCurve
source§fn eq(&self, other: &AnimationCurve) -> bool
fn eq(&self, other: &AnimationCurve) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u32> for AnimationCurve
impl TryFrom<u32> for AnimationCurve
§type Error = TryFromPrimitiveError<AnimationCurve>
type Error = TryFromPrimitiveError<AnimationCurve>
The type returned in the event of a conversion error.
source§fn try_from(
number: u32
) -> Result<AnimationCurve, TryFromPrimitiveError<AnimationCurve>>
fn try_from( number: u32 ) -> Result<AnimationCurve, TryFromPrimitiveError<AnimationCurve>>
Performs the conversion.
source§impl TryFromPrimitive for AnimationCurve
impl TryFromPrimitive for AnimationCurve
type Primitive = u32
const NAME: &'static str = "AnimationCurve"
fn try_from_primitive( number: <AnimationCurve as TryFromPrimitive>::Primitive ) -> Result<AnimationCurve, TryFromPrimitiveError<AnimationCurve>>
impl Copy for AnimationCurve
impl Eq for AnimationCurve
impl NoUninit for AnimationCurve
impl StructuralEq for AnimationCurve
impl StructuralPartialEq for AnimationCurve
Auto Trait Implementations§
impl RefUnwindSafe for AnimationCurve
impl Send for AnimationCurve
impl Sync for AnimationCurve
impl Unpin for AnimationCurve
impl UnwindSafe for AnimationCurve
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