pub struct MetaData { /* private fields */ }
Expand description
Snapshot metadata information.
Implementations§
Source§impl MetaData
impl MetaData
Sourcepub fn assertion_line(&self) -> Option<u32>
pub fn assertion_line(&self) -> Option<u32>
Returns the assertion line.
Sourcepub fn expression(&self) -> Option<&str>
pub fn expression(&self) -> Option<&str>
Returns the expression that created the snapshot.
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Returns the description that created the snapshot.
Sourcepub fn get_relative_source(&self, base: &Path) -> Option<PathBuf>
pub fn get_relative_source(&self, base: &Path) -> Option<PathBuf>
Returns the relative source path.
Sourcepub fn input_file(&self) -> Option<&str>
pub fn input_file(&self) -> Option<&str>
Returns the input file reference.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MetaData
impl RefUnwindSafe for MetaData
impl Send for MetaData
impl Sync for MetaData
impl Unpin for MetaData
impl UnwindSafe for MetaData
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