Enum let_engine::resources::sounds::Easing
source · #[non_exhaustive]pub enum Easing {
Linear,
InPowi(i32),
OutPowi(i32),
InOutPowi(i32),
InPowf(f64),
OutPowf(f64),
InOutPowf(f64),
}Expand description
Curves the motion of a Tween.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Linear
Maintains a constant speed for the duration of the Tween.
InPowi(i32)
Causes the Tween to start slow and speed up. A higher
value causes the Tween to speed up more dramatically.
OutPowi(i32)
Causes the Tween to start fast and slow down. A higher
value causes the Tween to slow down more dramatically.
InOutPowi(i32)
Causes the Tween to start slow, speed up, and then slow
back down. A higher values causes the Tween to have more
dramatic speed changes.
InPowf(f64)
Causes the Tween to start slow and speed up. A higher
value causes the Tween to speed up more dramatically.
This is similar to InPowi, but allows
for float intensity values at the cost of being more
CPU intensive.
OutPowf(f64)
Causes the Tween to start fast and slow down. A higher
value causes the Tween to slow down more dramatically.
This is similar to OutPowi, but allows
for float intensity values at the cost of being more
CPU intensive.
InOutPowf(f64)
Trait Implementations§
source§impl PartialEq for Easing
impl PartialEq for Easing
impl Copy for Easing
impl StructuralPartialEq for Easing
Auto Trait Implementations§
impl RefUnwindSafe for Easing
impl Send for Easing
impl Sync for Easing
impl Unpin for Easing
impl UnwindSafe for Easing
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.