Enum ark_api::world::AnimationCurve
source · [−]#[repr(u32)]
pub enum AnimationCurve {
Linear,
QuadraticEaseIn,
QuadraticEaseOut,
QuadraticEaseInOut,
}
Variants
Linear
QuadraticEaseIn
QuadraticEaseOut
QuadraticEaseInOut
Trait Implementations
sourceimpl 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
. Read more
sourcefn 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
. Read more
sourceimpl Clone for AnimationCurve
impl Clone for AnimationCurve
sourcefn clone(&self) -> AnimationCurve
fn clone(&self) -> AnimationCurve
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AnimationCurve
impl Debug for AnimationCurve
sourceimpl Hash for AnimationCurve
impl Hash for AnimationCurve
sourceimpl PartialEq<AnimationCurve> for AnimationCurve
impl PartialEq<AnimationCurve> for AnimationCurve
sourcefn 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 ==
. Read more
sourceimpl 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.
sourcefn try_from(
number: u32
) -> Result<AnimationCurve, TryFromPrimitiveError<AnimationCurve>>
fn try_from(
number: u32
) -> Result<AnimationCurve, TryFromPrimitiveError<AnimationCurve>>
Performs the conversion.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more