Struct sqlparser::tokenizer::TokenWithLocation
source · pub struct TokenWithLocation {
pub token: Token,
pub location: Location,
}
Fields§
§token: Token
§location: Location
Implementations§
source§impl TokenWithLocation
impl TokenWithLocation
pub fn new(token: Token, line: u64, column: u64) -> TokenWithLocation
pub fn wrap(token: Token) -> TokenWithLocation
Trait Implementations§
source§impl Clone for TokenWithLocation
impl Clone for TokenWithLocation
source§fn clone(&self) -> TokenWithLocation
fn clone(&self) -> TokenWithLocation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TokenWithLocation
impl Debug for TokenWithLocation
source§impl Display for TokenWithLocation
impl Display for TokenWithLocation
source§impl PartialEq<Token> for TokenWithLocation
impl PartialEq<Token> for TokenWithLocation
source§impl PartialEq<TokenWithLocation> for Token
impl PartialEq<TokenWithLocation> for Token
source§fn eq(&self, other: &TokenWithLocation) -> bool
fn eq(&self, other: &TokenWithLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for TokenWithLocation
impl PartialEq for TokenWithLocation
source§fn eq(&self, other: &TokenWithLocation) -> bool
fn eq(&self, other: &TokenWithLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TokenWithLocation
impl StructuralEq for TokenWithLocation
impl StructuralPartialEq for TokenWithLocation
Auto Trait Implementations§
impl RefUnwindSafe for TokenWithLocation
impl Send for TokenWithLocation
impl Sync for TokenWithLocation
impl Unpin for TokenWithLocation
impl UnwindSafe for TokenWithLocation
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