pub enum CommonKeyword {
Show 44 variants
Match,
Return,
Where,
As,
Distinct,
With,
Optional,
Order,
By,
Asc,
Desc,
Limit,
Skip,
And,
Or,
Not,
In,
Is,
Like,
Starts,
Ends,
Contains,
Null,
True,
False,
Create,
Delete,
Set,
Remove,
Merge,
Detach,
On,
Call,
Yield,
Exists,
Unwind,
Node,
Edge,
Having,
Case,
When,
Then,
Else,
End,
}Expand description
A keyword shared across multiple query language parsers.
Each parser maps these to its own TokenKind enum.
Variants§
Match
The MATCH keyword.
Return
The RETURN keyword.
Where
The WHERE keyword.
As
The AS keyword.
Distinct
The DISTINCT keyword.
With
The WITH keyword.
Optional
The OPTIONAL keyword.
Order
The ORDER keyword.
By
The BY keyword.
Asc
The ASC keyword.
Desc
The DESC keyword.
Limit
The LIMIT keyword.
Skip
The SKIP keyword.
And
The AND keyword.
Or
The OR keyword.
Not
The NOT keyword.
In
The IN keyword.
Is
The IS keyword.
Like
The LIKE keyword.
Starts
The STARTS keyword.
Ends
The ENDS keyword.
Contains
The CONTAINS keyword.
Null
The NULL keyword.
True
The TRUE keyword.
False
The FALSE keyword.
Create
The CREATE keyword.
Delete
The DELETE keyword.
Set
The SET keyword.
Remove
The REMOVE keyword.
Merge
The MERGE keyword.
Detach
The DETACH keyword.
On
The ON keyword.
Call
The CALL keyword.
Yield
The YIELD keyword.
Exists
The EXISTS keyword.
Unwind
The UNWIND keyword.
Node
The NODE keyword.
Edge
The EDGE keyword.
Having
The HAVING keyword.
Case
The CASE keyword.
When
The WHEN keyword.
Then
The THEN keyword.
Else
The ELSE keyword.
End
The END keyword.
Implementations§
Source§impl CommonKeyword
impl CommonKeyword
Sourcepub fn from_uppercase(text: &str) -> Option<Self>
pub fn from_uppercase(text: &str) -> Option<Self>
Recognizes a keyword from its uppercase text.
Returns None for language-specific or unrecognized identifiers.
The caller should convert the input to uppercase before calling.
Sourcepub fn is_keyword(text: &str) -> bool
pub fn is_keyword(text: &str) -> bool
Returns true if the given uppercase text is a keyword in any parser.
Trait Implementations§
Source§impl Clone for CommonKeyword
impl Clone for CommonKeyword
Source§fn clone(&self) -> CommonKeyword
fn clone(&self) -> CommonKeyword
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CommonKeyword
impl Debug for CommonKeyword
Source§impl Hash for CommonKeyword
impl Hash for CommonKeyword
Source§impl PartialEq for CommonKeyword
impl PartialEq for CommonKeyword
impl Copy for CommonKeyword
impl Eq for CommonKeyword
impl StructuralPartialEq for CommonKeyword
Auto Trait Implementations§
impl Freeze for CommonKeyword
impl RefUnwindSafe for CommonKeyword
impl Send for CommonKeyword
impl Sync for CommonKeyword
impl Unpin for CommonKeyword
impl UnsafeUnpin for CommonKeyword
impl UnwindSafe for CommonKeyword
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more