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
sourceimpl<T: Clone> Clone for ProgressMapperFn<T>
impl<T: Clone> Clone for ProgressMapperFn<T>
sourcefn clone(&self) -> ProgressMapperFn<T>
fn clone(&self) -> ProgressMapperFn<T>
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<T: Debug> Debug for ProgressMapperFn<T>
impl<T: Debug> Debug for ProgressMapperFn<T>
sourceimpl<T> Default for ProgressMapperFn<T>
impl<T> Default for ProgressMapperFn<T>
The default value for a ProgressMapperFn
is the identity function.
sourceimpl<T> From<fn(T) -> T> for ProgressMapperFn<T>
impl<T> From<fn(T) -> T> for ProgressMapperFn<T>
sourceimpl<T: Hash> Hash for ProgressMapperFn<T>
impl<T: Hash> Hash for ProgressMapperFn<T>
sourceimpl<T: PartialEq> PartialEq<ProgressMapperFn<T>> for ProgressMapperFn<T>
impl<T: PartialEq> PartialEq<ProgressMapperFn<T>> for ProgressMapperFn<T>
sourcefn eq(&self, other: &ProgressMapperFn<T>) -> bool
fn eq(&self, other: &ProgressMapperFn<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ProgressMapperFn<T>) -> bool
fn ne(&self, other: &ProgressMapperFn<T>) -> bool
This method tests for !=
.
sourceimpl<Progress> ProgressMapper<Progress> for ProgressMapperFn<Progress>
impl<Progress> ProgressMapper<Progress> for ProgressMapperFn<Progress>
sourcefn map_progress(&self, progress: Progress) -> Progress
fn map_progress(&self, progress: Progress) -> Progress
Maps an unconstrained progress value to a LERP factor. Read more
impl<T: Copy> Copy for ProgressMapperFn<T>
impl<T: Eq> Eq for ProgressMapperFn<T>
impl<T> StructuralEq for ProgressMapperFn<T>
impl<T> StructuralPartialEq for ProgressMapperFn<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for ProgressMapperFn<T>
impl<T> Send for ProgressMapperFn<T>
impl<T> Sync for ProgressMapperFn<T>
impl<T> Unpin for ProgressMapperFn<T>
impl<T> UnwindSafe for ProgressMapperFn<T>
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more