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