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
This method tests for
self
and other
values to be equal, and is used
by ==
.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
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§
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
Mutably borrows from an owned value. Read more