Struct oxygengine_ha_renderer::math::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) -> TTrait 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<ProgressMapperFn<T>> for ProgressMapperFn<T>where
T: PartialEq<T>,
impl<T> PartialEq<ProgressMapperFn<T>> for ProgressMapperFn<T>where T: PartialEq<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 for ProgressMapperFn<T>where T: Copy,
impl<T> Eq for ProgressMapperFn<T>where T: Eq,
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more