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 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
sourceimpl<'de> Deserialize<'de> for MetaData
impl<'de> Deserialize<'de> for MetaData
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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