Struct veloren_voxygen_anim::vek::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 for ProgressMapperFn<T>where
T: Clone,
impl<T> Clone for ProgressMapperFn<T>where
T: Clone,
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 for ProgressMapperFn<T>where
T: Debug,
impl<T> Debug for ProgressMapperFn<T>where
T: Debug,
source§impl<T> Default for ProgressMapperFn<T>
impl<T> Default for ProgressMapperFn<T>
The default value for a ProgressMapperFn
is the identity function.
source§fn default() -> ProgressMapperFn<T>
fn default() -> ProgressMapperFn<T>
Returns the “default value” for a type. Read more
source§impl<T> From<fn(_: T) -> T> for ProgressMapperFn<T>
impl<T> From<fn(_: T) -> T> for ProgressMapperFn<T>
source§fn from(f: fn(_: T) -> T) -> ProgressMapperFn<T>
fn from(f: fn(_: T) -> T) -> ProgressMapperFn<T>
Converts to this type from the input type.
source§impl<T> Hash for ProgressMapperFn<T>where
T: Hash,
impl<T> Hash for ProgressMapperFn<T>where
T: Hash,
source§impl<T> PartialEq for ProgressMapperFn<T>where
T: PartialEq,
impl<T> PartialEq for ProgressMapperFn<T>where
T: PartialEq,
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 for ProgressMapperFn<T>where
T: Copy,
impl<T> Eq for ProgressMapperFn<T>where
T: Eq,
impl<T> StructuralPartialEq for ProgressMapperFn<T>
Auto Trait Implementations§
impl<T> Freeze for ProgressMapperFn<T>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Pointee for T
impl<T> Pointee for T
§impl<Context> SubContext<Context> for Context
impl<Context> SubContext<Context> for Context
fn sub_context(self) -> Context
§impl<T> TryDefault for Twhere
T: Default,
impl<T> TryDefault for Twhere
T: Default,
§fn try_default() -> Result<T, String>
fn try_default() -> Result<T, String>
Tries to create the default.
§fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls
try_default
and panics on an error case.