pub struct Token<'a> {
pub text: &'a str,
pub start: usize,
pub kind: Kind,
pub terminated: bool,
}Expand description
One lexical unit of a statement.
Fields§
§text: &'a strThe token as written.
start: usizeThe byte offset of text in the scanned SQL.
kind: KindWhat the token is.
terminated: boolWhether a quote, comment or dollar quote the token opens is closed; an unclosed one runs to the end of the SQL.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Token<'a>
impl<'a> Freeze for Token<'a>
impl<'a> Move for Token<'a>
impl<'a> RefUnwindSafe for Token<'a>
impl<'a> Send for Token<'a>
impl<'a> Sync for Token<'a>
impl<'a> Unpin for Token<'a>
impl<'a> UnsafeUnpin for Token<'a>
impl<'a> UnwindSafe for Token<'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