Struct gluesql::core::sqlparser::tokenizer::TokenWithLocation
pub struct TokenWithLocation {
pub token: Token,
pub location: Location,
}
Fields§
§token: Token
§location: Location
Implementations§
§impl TokenWithLocation
impl TokenWithLocation
pub fn new(token: Token, line: u64, column: u64) -> TokenWithLocation
pub fn wrap(token: Token) -> TokenWithLocation
Trait Implementations§
§impl Clone for TokenWithLocation
impl Clone for TokenWithLocation
§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 more§impl Debug for TokenWithLocation
impl Debug for TokenWithLocation
§impl Display for TokenWithLocation
impl Display for TokenWithLocation
§impl PartialEq<Token> for TokenWithLocation
impl PartialEq<Token> for TokenWithLocation
§impl PartialEq<TokenWithLocation> for Token
impl PartialEq<TokenWithLocation> for Token
§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 PartialEq for TokenWithLocation
impl PartialEq for TokenWithLocation
§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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.