pub struct MetaData { /* private fields */ }
Expand description
Snapshot metadata information.
Implementations
sourceimpl 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 RefUnwindSafe for MetaData
impl Send for MetaData
impl Sync for MetaData
impl Unpin for MetaData
impl UnwindSafe for MetaData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more