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<TokenWithLocation> for TokenWithLocation
impl PartialEq<TokenWithLocation> 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 ==
.