#[non_exhaustive]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.
Non-exhaustive: new variants may come without a breaking release, so
a match needs a _ arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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