pub struct Sample<T> {
pub data: Option<T>,
pub info: SampleInfo,
}Expand description
A sample with its information.
Fields§
§data: Option<T>The value; None for a sample without data
(info.valid_data == false), which only tells of a change in the
state of its instance.
info: SampleInfoThe information.
Trait Implementations§
impl<T: PartialEq> StructuralPartialEq for Sample<T>
Auto Trait Implementations§
impl<T> Forget for Sample<T>
impl<T> Freeze for Sample<T>where
T: Freeze,
impl<T> Move for Sample<T>
impl<T> RefUnwindSafe for Sample<T>where
T: RefUnwindSafe,
impl<T> Send for Sample<T>where
T: Send,
impl<T> Sync for Sample<T>where
T: Sync,
impl<T> Unpin for Sample<T>where
T: Unpin,
impl<T> UnsafeUnpin for Sample<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Sample<T>where
T: 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