pub struct Snapshot { /* private fields */ }
Expand description
A helper to work with file 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 matches_fully(&self, other: &Self) -> bool
pub fn matches_fully(&self, other: &Self) -> bool
Both the exact snapshot contents and the persisted metadata match another snapshot’s.
pub fn build_binary_path(&self, path: impl Into<PathBuf>) -> Option<PathBuf>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Snapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)