pub struct Word<'a> {
pub text: &'a str,
pub start: usize,
pub end: usize,
}Expand description
A word in a text: text, from byte start up to end, the offsets a diagnose::Diagnostic takes.
Fields§
§text: &'a str§start: usize§end: usizeTrait Implementations§
impl<'a> Copy for Word<'a>
impl<'a> Eq for Word<'a>
impl<'a> StructuralPartialEq for Word<'a>
Auto Trait Implementations§
impl<'a> Forget for Word<'a>
impl<'a> Freeze for Word<'a>
impl<'a> Move for Word<'a>
impl<'a> RefUnwindSafe for Word<'a>
impl<'a> Send for Word<'a>
impl<'a> Sync for Word<'a>
impl<'a> Unpin for Word<'a>
impl<'a> UnsafeUnpin for Word<'a>
impl<'a> UnwindSafe for Word<'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