pub enum SourceRef {
File(PathBuf),
String(usize),
Value(usize),
}Expand description
Where a traced value came from.
Source labels exist for debugging and testing — they are not config data, and no config semantics should be built on top of them.
Variants§
File(PathBuf)
The file path as the loader saw it (source path joined with the relative path inside a folder source).
String(usize)
A Source::String entry, by its index in
the sources list.
Value(usize)
A Source::Value entry (a 1-tuple
(value,) source), by its index in the sources list.
Trait Implementations§
impl Eq for SourceRef
impl StructuralPartialEq for SourceRef
Auto Trait Implementations§
impl Freeze for SourceRef
impl RefUnwindSafe for SourceRef
impl Send for SourceRef
impl Sync for SourceRef
impl Unpin for SourceRef
impl UnsafeUnpin for SourceRef
impl UnwindSafe for SourceRef
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