pub struct TextSlice {
pub text: String,
pub byte_offset: usize,
pub raw_range: Range<usize>,
}Expand description
A borrowed slice of source bytes plus its absolute byte range. The minimal record every rule needs to emit a diagnostic.
Fields§
§text: String§byte_offset: usize§raw_range: Range<usize>Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextSlice
impl RefUnwindSafe for TextSlice
impl Send for TextSlice
impl Sync for TextSlice
impl Unpin for TextSlice
impl UnsafeUnpin for TextSlice
impl UnwindSafe for TextSlice
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