pub struct SpanT<F, L> {
pub file_name: F,
pub start: L,
pub end: L,
}Expand description
A region of source code.
A pair of locations, representing a half-open range, and a file name, identifying the source code in which this region appears.
Fields§
§file_name: FThe name of the source code.
Often a file name, but can be an arbitrary string like <input> or even any other type.
start: LThe (inclusive) starting location.
end: LThe (exclusive) ending location.
Implementations§
Trait Implementations§
impl<F: Copy, L: Copy> Copy for SpanT<F, L>
impl<F: Eq, L: Eq> Eq for SpanT<F, L>
impl<F, L> StructuralPartialEq for SpanT<F, L>
Auto Trait Implementations§
impl<F, L> Freeze for SpanT<F, L>
impl<F, L> RefUnwindSafe for SpanT<F, L>where
F: RefUnwindSafe,
L: RefUnwindSafe,
impl<F, L> Send for SpanT<F, L>
impl<F, L> Sync for SpanT<F, L>
impl<F, L> Unpin for SpanT<F, L>
impl<F, L> UnwindSafe for SpanT<F, L>where
F: UnwindSafe,
L: UnwindSafe,
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