Struct vek::transition::ProgressMapperFn [−][src]
pub struct ProgressMapperFn<T>(pub fn(_: T) -> T);
Expand description
A function pointer container that can map a progress value to a LERP factor.
Trait Implementations
impl<T: Clone> Clone for ProgressMapperFn<T>
[src]
impl<T: Clone> Clone for ProgressMapperFn<T>
[src]fn clone(&self) -> 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]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for ProgressMapperFn<T>
[src]
impl<T: Debug> Debug for ProgressMapperFn<T>
[src]impl<T> Default 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<T> From<fn(T) -> T> for ProgressMapperFn<T>
[src]impl<T: Hash> Hash for ProgressMapperFn<T>
[src]
impl<T: Hash> Hash for ProgressMapperFn<T>
[src]impl<T: PartialEq> PartialEq<ProgressMapperFn<T>> for ProgressMapperFn<T>
[src]
impl<T: PartialEq> PartialEq<ProgressMapperFn<T>> for ProgressMapperFn<T>
[src]fn eq(&self, other: &ProgressMapperFn<T>) -> bool
[src]
fn eq(&self, other: &ProgressMapperFn<T>) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &ProgressMapperFn<T>) -> bool
[src]
fn ne(&self, other: &ProgressMapperFn<T>) -> bool
[src]This method tests for !=
.
impl<Progress> ProgressMapper<Progress> for ProgressMapperFn<Progress>
[src]
impl<Progress> ProgressMapper<Progress> for ProgressMapperFn<Progress>
[src]fn map_progress(&self, progress: Progress) -> Progress
[src]
fn map_progress(&self, progress: Progress) -> Progress
[src]Maps an unconstrained progress value to a LERP factor. Read more
impl<T: Copy> Copy for ProgressMapperFn<T>
[src]
impl<T: Eq> Eq for ProgressMapperFn<T>
[src]
impl<T> StructuralEq for ProgressMapperFn<T>
[src]
impl<T> StructuralPartialEq for ProgressMapperFn<T>
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more