pub struct TextToken {
pub kind: String,
pub text: String,
pub offset: usize,
}Expand description
A simple text-based tokeniser for round-trip validation.
Fields§
§kind: StringToken kind label
text: StringRaw text of the token
offset: usizeByte offset in the source
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextToken
impl RefUnwindSafe for TextToken
impl Send for TextToken
impl Sync for TextToken
impl Unpin for TextToken
impl UnsafeUnpin for TextToken
impl UnwindSafe for TextToken
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