pub struct SampledWithKey<V> {
pub value: V,
pub key: usize,
}Expand description
A sampled value along with its key index.
Fields§
§value: VSampled value.
key: usizeKey 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 duplicate 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>
impl<V: Eq> Eq for SampledWithKey<V>
impl<V> StructuralPartialEq for SampledWithKey<V>
Auto Trait Implementations§
impl<V> Freeze for SampledWithKey<V>where
V: Freeze,
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