pub struct SampleWithComponent {
pub value: f64,
pub component_index: usize,
pub component_label: Option<String>,
}Expand description
Result of sampling with component information.
Fields§
§value: f64The sampled value
component_index: usizeIndex of the component that generated this sample
component_label: Option<String>Label of the component (if available)
Trait Implementations§
Source§impl Clone for SampleWithComponent
impl Clone for SampleWithComponent
Source§fn clone(&self) -> SampleWithComponent
fn clone(&self) -> SampleWithComponent
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 moreAuto Trait Implementations§
impl Freeze for SampleWithComponent
impl RefUnwindSafe for SampleWithComponent
impl Send for SampleWithComponent
impl Sync for SampleWithComponent
impl Unpin for SampleWithComponent
impl UnwindSafe for SampleWithComponent
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