Struct stacked_errors::DisplayShortLocation
source · pub struct DisplayShortLocation<'a>(pub &'a Location<'a>);Expand description
This is a wrapper around a Location that shortens the Debug of the
file field
If this detects “/.cargo/registry/src/” in the file field, it truncates
that and all previous characters, and the following “/” group if it exists
(it is alternately configured to do this with “\” on Windows). For example,
“/home/admin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/
super_orchestrator-0.5.1/src/misc.rs”
gets truncated to “super_orchestrator-0.5.1/src/misc.rs”
Tuple Fields§
§0: &'a Location<'a>Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DisplayShortLocation<'a>
impl<'a> RefUnwindSafe for DisplayShortLocation<'a>
impl<'a> Send for DisplayShortLocation<'a>
impl<'a> Sync for DisplayShortLocation<'a>
impl<'a> Unpin for DisplayShortLocation<'a>
impl<'a> UnwindSafe for DisplayShortLocation<'a>
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