pub struct Identifier {
pub token: Token,
/* private fields */
}Expand description
Identifier (column name, table name, etc.)
Fields§
§token: TokenImplementations§
Source§impl Identifier
impl Identifier
Sourcepub fn new(token: Token, value: impl Into<SmartString>) -> Self
pub fn new(token: Token, value: impl Into<SmartString>) -> Self
Create a new identifier with pre-computed lowercase value. Keywords are uppercased by the lexer for parsing; when used as identifiers (column names, aliases, table names), fold to lowercase like PostgreSQL.
pub fn value(&self) -> &str
pub fn value_lower(&self) -> &str
Trait Implementations§
Source§impl Clone for Identifier
impl Clone for Identifier
Source§fn clone(&self) -> Identifier
fn clone(&self) -> Identifier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Identifier
impl Debug for Identifier
Source§impl Display for Identifier
impl Display for Identifier
Source§impl PartialEq for Identifier
impl PartialEq for Identifier
impl StructuralPartialEq for Identifier
Auto Trait Implementations§
impl Freeze for Identifier
impl RefUnwindSafe for Identifier
impl Send for Identifier
impl Sync for Identifier
impl Unpin for Identifier
impl UnsafeUnpin for Identifier
impl UnwindSafe for Identifier
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