pub struct Snapshot {
pub page: u32,
pub entries: Vec<SnapshotEntry>,
}Expand description
A captured calibration set: the values of every named characteristic, with the page they were read on.
Fields§
§page: u32The calibration page that was active when the capture started.
entries: Vec<SnapshotEntry>The captured characteristics, in capture order.
Implementations§
Source§impl Snapshot
impl Snapshot
Sourcepub fn entry(&self, module: &str, name: &str) -> Option<&SnapshotEntry>
pub fn entry(&self, module: &str, name: &str) -> Option<&SnapshotEntry>
The entry for name in module.
Sourcepub fn find(&self, name: &str) -> Option<&SnapshotEntry>
pub fn find(&self, name: &str) -> Option<&SnapshotEntry>
The entry for name, searched across every module.
Sourcepub fn element_count(&self) -> usize
pub fn element_count(&self) -> usize
Total number of elements captured.
Trait Implementations§
impl StructuralPartialEq for Snapshot
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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