Struct vek::transition::ProgressMapperFn
[−]
[src]
pub struct ProgressMapperFn<T>(pub fn(_: T) -> T);
A function pointer container that can map a progress value to a LERP factor.
Trait Implementations
impl<T: Debug> Debug for ProgressMapperFn<T>
[src]
impl<T: Copy> Copy for ProgressMapperFn<T>
[src]
impl<T: Clone> Clone for ProgressMapperFn<T>
[src]
fn clone(&self) -> ProgressMapperFn<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Hash> Hash for ProgressMapperFn<T>
[src]
fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: PartialEq> PartialEq for ProgressMapperFn<T>
[src]
fn eq(&self, __arg_0: &ProgressMapperFn<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ProgressMapperFn<T>) -> bool
[src]
This method tests for !=
.
impl<T: Eq> Eq for ProgressMapperFn<T>
[src]
impl<T> Default for ProgressMapperFn<T>
[src]
The default value for a ProgressMapperFn
is the identity function.
impl<T> From<fn(_: T) -> T> for ProgressMapperFn<T>
[src]
impl<Progress> ProgressMapper<Progress> for ProgressMapperFn<Progress>
[src]
fn map_progress(&self, progress: Progress) -> Progress
[src]
Maps an unconstrained progress value to a LERP factor. Read more