Struct oxygengine_animation::animation::Interpolation [−][src]
Fields
from: Tto: Ttime_phase: Phaseplaying: boollooped: boolImplementations
impl<T> Interpolation<T> where
T: Default + Clone + Curved, [src]
T: Default + Clone + Curved,
pub fn new(from: T, to: T, time_phase: Phase) -> Self[src]
pub fn instant(value: T) -> Self[src]
pub fn time(&self) -> Scalar[src]
pub fn start(&mut self)[src]
pub fn end(&mut self)[src]
pub fn set_time(&mut self, time: Scalar)[src]
pub fn in_progress(&self) -> bool[src]
pub fn is_complete(&self) -> bool[src]
pub fn duration(&self) -> Scalar[src]
pub fn value(&self) -> T[src]
pub fn sample(&self, time: Scalar) -> T[src]
pub fn set(&mut self, value: T)[src]
pub fn process(&mut self, delta_time: Scalar)[src]
Trait Implementations
impl<T: Clone> Clone for Interpolation<T> where
T: Default + Clone + Curved, [src]
T: Default + Clone + Curved,
fn clone(&self) -> Interpolation<T>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<T: Debug> Debug for Interpolation<T> where
T: Default + Clone + Curved, [src]
T: Default + Clone + Curved,
impl<T: Default> Default for Interpolation<T> where
T: Default + Clone + Curved, [src]
T: Default + Clone + Curved,
fn default() -> Interpolation<T>[src]
impl<'de, T> Deserialize<'de> for Interpolation<T> where
T: Default + Clone + Curved,
T: Serialize + DeserializeOwned, [src]
T: Default + Clone + Curved,
T: Serialize + DeserializeOwned,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl<T> Serialize for Interpolation<T> where
T: Default + Clone + Curved,
T: Serialize + DeserializeOwned, [src]
T: Default + Clone + Curved,
T: Serialize + DeserializeOwned,
Auto Trait Implementations
impl<T> RefUnwindSafe for Interpolation<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Interpolation<T> where
T: Send,
T: Send,
impl<T> Sync for Interpolation<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Interpolation<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Interpolation<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
pub fn get_type_id(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Resource for T where
T: Any,
T: Any,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> TryDefault for T where
T: Default,
T: Default,
pub fn try_default() -> Result<T, String>
pub fn unwrap_default() -> Self
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,