pub struct ArgvSpan {
pub index: usize,
pub start: usize,
pub end: usize,
}Expand description
The bytes within one argv word responsible for a diagnostic.
index addresses the argv slice passed to report. start and end are byte offsets in
that std::ffi::OsStr, so the location remains lossless for non-UTF-8 command lines.
Fields§
§index: usize§start: usize§end: usizeTrait Implementations§
impl Copy for ArgvSpan
impl Eq for ArgvSpan
impl StructuralPartialEq for ArgvSpan
Auto Trait Implementations§
impl Freeze for ArgvSpan
impl RefUnwindSafe for ArgvSpan
impl Send for ArgvSpan
impl Sync for ArgvSpan
impl Unpin for ArgvSpan
impl UnsafeUnpin for ArgvSpan
impl UnwindSafe for ArgvSpan
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