Skip to main content

Rule

Enum Rule 

Source
pub enum Rule {
Show 187 variants EOI, WHITESPACE, COMMENT, akar_query, statement, export_database, export_options, export_option, import_database, create_dml_statement, call_statement, union_statement, union_keyword, analyze_statement, transaction_statement, extension_statement, multi_db_statement, attach_database, attach_options, attach_option, detach_database, use_database, load_from, load_options, load_option, alter_table, alter_action, add_column, drop_column, rename_column, rename_table, ddl_statement, create_type, comment_on_table, create_macro, create_fts_index, fts_tokenizer_clause, using_fts_clause, macro_params, macro_param, create_sequence, or_replace, sequence_start_with, sequence_increment_by, sequence_minvalue, sequence_maxvalue, sequence_cycle, minus, drop_sequence, create_index, index_type, if_not_exists, if_exists, drop_index, copy_to, copy_to_options, copy_to_option, format_option, copy_from, copy_options, copy_option, header_option, delim_option, escape_option, quote_option, set_clause, set_item, merge_clause, call_clause, call_args, function_name, on_create_set, on_match_set, delete_clause, detach_kw, unwind_clause, foreach_clause, foreach_body, create_clause_inline, query_statement, query_clause, create_node_table, create_rel_table, drop_table, table_element, table_elements, column_definitions, column_def, type_name, array_suffix, primitive_type, map_type, struct_type, struct_field, union_type, primary_key, create_vector_index, vector_index_options, vector_index_option, metric_option, dimensions_option, optional_match_clause, match_clause, pattern, node_pattern, edge_pattern, var_length, label, property_map, property_key_value, where_clause, with_clause, return_clause, distinct_flag, return_item, order_by, sort_item, sort_dir, limit, offset, expression, or_kw, and_kw, not_kw, xor_kw, or_expr, xor_expr, and_expr, not_expr, comparison_expr, comparison_op, is_check_op, in_kw, in_op, not_in_op, starts_with_kw, starts_with_op, not_starts_with_op, ends_with_kw, ends_with_op, not_ends_with_op, contains_kw, contains_op, not_contains_op, like_kw, like_op, between_kw, between_op, additive_expr, add_op, multiplicative_expr, mul_op, unary_expr, postfix_expr, property_access, primary, lambda_expr, list_predicate, case_expr, case_expr_start, case_expr_end, case_subject, case_when, case_when_start, case_then, case_else, case_else_start, exists_subquery, parameter, function_args, star, literal, string, escape_char, integer, float, boolean_literal, null_literal, list_literal, map_literal, variable, identifier, backtick_identifier, graph_statement, create_graph, use_graph, drop_graph,
}

Variants§

§

EOI

End-of-input

§

WHITESPACE

§

COMMENT

§

akar_query

§

statement

§

export_database

§

export_options

§

export_option

§

import_database

§

create_dml_statement

§

call_statement

§

union_statement

§

union_keyword

§

analyze_statement

§

transaction_statement

§

extension_statement

§

multi_db_statement

§

attach_database

§

attach_options

§

attach_option

§

detach_database

§

use_database

§

load_from

§

load_options

§

load_option

§

alter_table

§

alter_action

§

add_column

§

drop_column

§

rename_column

§

rename_table

§

ddl_statement

§

create_type

§

comment_on_table

§

create_macro

§

create_fts_index

§

fts_tokenizer_clause

§

using_fts_clause

§

macro_params

§

macro_param

§

create_sequence

§

or_replace

§

sequence_start_with

§

sequence_increment_by

§

sequence_minvalue

§

sequence_maxvalue

§

sequence_cycle

§

minus

§

drop_sequence

§

create_index

§

index_type

§

if_not_exists

§

if_exists

§

drop_index

§

copy_to

§

copy_to_options

§

copy_to_option

§

format_option

§

copy_from

§

copy_options

§

copy_option

§

header_option

§

delim_option

§

escape_option

§

quote_option

§

set_clause

§

set_item

§

merge_clause

§

call_clause

§

call_args

§

function_name

§

on_create_set

§

on_match_set

§

delete_clause

§

detach_kw

§

unwind_clause

§

foreach_clause

§

foreach_body

§

create_clause_inline

§

query_statement

§

query_clause

§

create_node_table

§

create_rel_table

§

drop_table

§

table_element

§

table_elements

§

column_definitions

§

column_def

§

type_name

§

array_suffix

§

primitive_type

§

map_type

§

struct_type

§

struct_field

§

union_type

§

primary_key

§

create_vector_index

§

vector_index_options

§

vector_index_option

§

metric_option

§

dimensions_option

§

optional_match_clause

§

match_clause

§

pattern

§

node_pattern

§

edge_pattern

§

var_length

§

label

§

property_map

§

property_key_value

§

where_clause

§

with_clause

§

return_clause

§

distinct_flag

§

return_item

§

order_by

§

sort_item

§

sort_dir

§

limit

§

offset

§

expression

§

or_kw

§

and_kw

§

not_kw

§

xor_kw

§

or_expr

§

xor_expr

§

and_expr

§

not_expr

§

comparison_expr

§

comparison_op

§

is_check_op

§

in_kw

§

in_op

§

not_in_op

§

starts_with_kw

§

starts_with_op

§

not_starts_with_op

§

ends_with_kw

§

ends_with_op

§

not_ends_with_op

§

contains_kw

§

contains_op

§

not_contains_op

§

like_kw

§

like_op

§

between_kw

§

between_op

§

additive_expr

§

add_op

§

multiplicative_expr

§

mul_op

§

unary_expr

§

postfix_expr

§

property_access

§

primary

§

lambda_expr

§

list_predicate

§

case_expr

§

case_expr_start

§

case_expr_end

§

case_subject

§

case_when

§

case_when_start

§

case_then

§

case_else

§

case_else_start

§

exists_subquery

§

parameter

§

function_args

§

star

§

literal

§

string

§

escape_char

§

integer

§

float

§

boolean_literal

§

null_literal

§

list_literal

§

map_literal

§

variable

§

identifier

§

backtick_identifier

§

graph_statement

§

create_graph

§

use_graph

§

drop_graph

Implementations§

Source§

impl Rule

Source

pub fn all_rules() -> &'static [Rule]

Trait Implementations§

Source§

impl Clone for Rule

Source§

fn clone(&self) -> Rule

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Rule

Source§

impl Debug for Rule

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Rule

Source§

impl Hash for Rule

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for Rule

Source§

fn cmp(&self, other: &Rule) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

fn clamp_to<R>(self, range: R) -> Self
where Self: Sized, R: ClampBounds<Self>,

🔬This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range. Read more
Source§

impl Parser<Rule> for CypherParser

Source§

fn parse<'i>(rule: Rule, input: &'i str) -> Result<Pairs<'i, Rule>, Error<Rule>>

Parses a &str starting from rule.
Source§

impl PartialEq for Rule

Source§

fn eq(&self, other: &Rule) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for Rule

Source§

fn partial_cmp(&self, other: &Rule) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for Rule

Auto Trait Implementations§

§

impl Freeze for Rule

§

impl RefUnwindSafe for Rule

§

impl Send for Rule

§

impl Sync for Rule

§

impl Unpin for Rule

§

impl UnsafeUnpin for Rule

§

impl UnwindSafe for Rule

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> RuleType for T
where T: Copy + Debug + Eq + Hash + Ord,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.