Struct splines::spline::SampledWithKey
source · pub struct SampledWithKey<V> {
pub value: V,
pub key: usize,
}
Expand description
A sampled value along with its key index.
Fields§
§value: V
Sampled value.
key: usize
Key index.
Trait Implementations§
source§impl<V: Clone> Clone for SampledWithKey<V>
impl<V: Clone> Clone for SampledWithKey<V>
source§fn clone(&self) -> SampledWithKey<V>
fn clone(&self) -> SampledWithKey<V>
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<V: Debug> Debug for SampledWithKey<V>
impl<V: Debug> Debug for SampledWithKey<V>
source§impl<V: Hash> Hash for SampledWithKey<V>
impl<V: Hash> Hash for SampledWithKey<V>
source§impl<V: PartialEq> PartialEq for SampledWithKey<V>
impl<V: PartialEq> PartialEq for SampledWithKey<V>
source§fn eq(&self, other: &SampledWithKey<V>) -> bool
fn eq(&self, other: &SampledWithKey<V>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<V: Eq> Eq for SampledWithKey<V>
impl<V> StructuralEq for SampledWithKey<V>
impl<V> StructuralPartialEq for SampledWithKey<V>
Auto Trait Implementations§
impl<V> RefUnwindSafe for SampledWithKey<V>where
V: RefUnwindSafe,
impl<V> Send for SampledWithKey<V>where
V: Send,
impl<V> Sync for SampledWithKey<V>where
V: Sync,
impl<V> Unpin for SampledWithKey<V>where
V: Unpin,
impl<V> UnwindSafe for SampledWithKey<V>where
V: UnwindSafe,
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.