pub struct Snapshot { /* private fields */ }
Expand description
A helper to work with stored snapshots.
Implementations§
source§impl Snapshot
impl Snapshot
sourcepub fn module_name(&self) -> &str
pub fn module_name(&self) -> &str
Returns the module name.
sourcepub fn snapshot_name(&self) -> Option<&str>
pub fn snapshot_name(&self) -> Option<&str>
Returns the snapshot name.
sourcepub fn contents(&self) -> &SnapshotContents
pub fn contents(&self) -> &SnapshotContents
The snapshot contents
sourcepub fn contents_str(&self) -> &str
pub fn contents_str(&self) -> &str
The snapshot contents as a &str
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin 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