Struct vek::transition::ProgressMapperFn
source · pub struct ProgressMapperFn<T>(pub fn(_: T) -> T);
Expand description
A function pointer container that can map a progress value to a LERP factor.
Tuple Fields§
§0: fn(_: T) -> T
Trait Implementations§
source§impl<T: Clone> Clone for ProgressMapperFn<T>
impl<T: Clone> Clone for ProgressMapperFn<T>
source§fn clone(&self) -> ProgressMapperFn<T>
fn clone(&self) -> ProgressMapperFn<T>
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<T: Debug> Debug for ProgressMapperFn<T>
impl<T: Debug> Debug for ProgressMapperFn<T>
source§impl<T> Default for ProgressMapperFn<T>
impl<T> Default for ProgressMapperFn<T>
The default value for a ProgressMapperFn
is the identity function.
source§impl<T> From<fn(_: T) -> T> for ProgressMapperFn<T>
impl<T> From<fn(_: T) -> T> for ProgressMapperFn<T>
source§impl<T: Hash> Hash for ProgressMapperFn<T>
impl<T: Hash> Hash for ProgressMapperFn<T>
source§impl<T: PartialEq> PartialEq<ProgressMapperFn<T>> for ProgressMapperFn<T>
impl<T: PartialEq> PartialEq<ProgressMapperFn<T>> for ProgressMapperFn<T>
source§fn eq(&self, other: &ProgressMapperFn<T>) -> bool
fn eq(&self, other: &ProgressMapperFn<T>) -> bool
source§impl<Progress> ProgressMapper<Progress> for ProgressMapperFn<Progress>
impl<Progress> ProgressMapper<Progress> for ProgressMapperFn<Progress>
source§fn map_progress(&self, progress: Progress) -> Progress
fn map_progress(&self, progress: Progress) -> Progress
Maps an unconstrained progress value to a LERP factor. Read more