pub enum SyntaxToken {
Literal(String),
Comma,
Field(ObjectFieldIdentifier),
}
Variants§
Implementations§
source§impl SyntaxToken
impl SyntaxToken
pub fn name_or_empty(&self) -> &str
Trait Implementations§
source§impl Clone for SyntaxToken
impl Clone for SyntaxToken
source§fn clone(&self) -> SyntaxToken
fn clone(&self) -> SyntaxToken
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 SyntaxToken
impl Debug for SyntaxToken
source§impl From<&str> for SyntaxToken
impl From<&str> for SyntaxToken
source§impl From<ObjectFieldIdentifier> for SyntaxToken
impl From<ObjectFieldIdentifier> for SyntaxToken
source§fn from(value: ObjectFieldIdentifier) -> Self
fn from(value: ObjectFieldIdentifier) -> Self
Converts to this type from the input type.
source§impl PartialEq for SyntaxToken
impl PartialEq for SyntaxToken
source§fn eq(&self, other: &SyntaxToken) -> bool
fn eq(&self, other: &SyntaxToken) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SyntaxToken
Auto Trait Implementations§
impl RefUnwindSafe for SyntaxToken
impl Send for SyntaxToken
impl Sync for SyntaxToken
impl Unpin for SyntaxToken
impl UnwindSafe for SyntaxToken
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