Enum Rule

Source
pub enum Rule {
Show 148 variants WHITESPACE, query, expression, clause_list, clause, text_clause, text_options, text_options_value, text_options_optional, expression_tree_clause, expression_tree_operator, expression_clause, expression_operator, expression_list, where_clause, leaf_clause, value, value_operator, list_operator, operator_expression_operator, operator_expression, operator_list, value_operator_type, list_operator_type, elemmatch_expression_operator_type, operator_expression_operator_type, operator, distance_operator, shape, geometry, geometry_point, geometry_type, geometry_coordinates, legacy_coordinates, legacy_shape, center_shape, box_shape, polygon_shape, where_operator, text_operator, search_operator, text_optional_operator, case_sensitive_operator, diacritic_sensitive_operator, leaf_value_list, key, json, begin_array, begin_object, end_array, end_object, name_separator, value_separator, leaf_value, false_lit, true_lit, null, extended_json_value, ejson_objectid, hexdig24, ejson_minkey, ejson_maxkey, ejson_long, ejson_decimal, ejson_date, ejson_iso8601_date, ejson_numberlong_date, ejson_undefined, ejson_dbref, ejson_regex, ejson_binary, ejson_timestamp, object, member, array, array_number, number, number_positive, number_longitude, number_latitude, decimal_point, digit1_9, e, exp, frac, int, minus, plus, zero, string, char, escape, quotation_mark, unescaped, date_century, date_decade, date_subdecade, date_year, date_fullyear, date_month, date_wday, date_mday, date_yday, date_week, datepart_fullyear, datepart_ptyear, datepart_wkyear, dateopt_century, dateopt_fullyear, dateopt_year, dateopt_month, dateopt_week, datespec_full, datespec_year, datespec_month, datespec_mday, datespec_week, datespec_wday, datespec_yday, date, time_hour, time_minute, time_second, time_fraction, time_numoffset, time_zone, timeopt_hour, timeopt_minute, timespec_hour, timespec_minute, timespec_second, timespec_base, time, iso_date_time, dur_second, dur_minute, dur_hour, dur_time, dur_day, dur_week, dur_month, dur_year, dur_date, duration, period_explicit, period_start, period_end, period,
}

Variants§

§

WHITESPACE

§

query

§

expression

§

clause_list

§

clause

§

text_clause

§

text_options

§

text_options_value

§

text_options_optional

§

expression_tree_clause

§

expression_tree_operator

§

expression_clause

§

expression_operator

§

expression_list

§

where_clause

§

leaf_clause

§

value

§

value_operator

§

list_operator

§

operator_expression_operator

§

operator_expression

§

operator_list

§

value_operator_type

§

list_operator_type

§

elemmatch_expression_operator_type

§

operator_expression_operator_type

§

operator

§

distance_operator

§

shape

§

geometry

§

geometry_point

§

geometry_type

§

geometry_coordinates

§

legacy_coordinates

§

legacy_shape

§

center_shape

§

box_shape

§

polygon_shape

§

where_operator

§

text_operator

§

search_operator

§

text_optional_operator

§

case_sensitive_operator

§

diacritic_sensitive_operator

§

leaf_value_list

§

key

§

json

§

begin_array

§

begin_object

§

end_array

§

end_object

§

name_separator

§

value_separator

§

leaf_value

§

false_lit

§

true_lit

§

null

§

extended_json_value

§

ejson_objectid

§

hexdig24

§

ejson_minkey

§

ejson_maxkey

§

ejson_long

§

ejson_decimal

§

ejson_date

§

ejson_iso8601_date

§

ejson_numberlong_date

§

ejson_undefined

§

ejson_dbref

§

ejson_regex

§

ejson_binary

§

ejson_timestamp

§

object

§

member

§

array

§

array_number

§

number

§

number_positive

§

number_longitude

§

number_latitude

§

decimal_point

§

digit1_9

§

e

§

exp

§

frac

§

int

§

minus

§

plus

§

zero

§

string

§

char

§

escape

§

quotation_mark

§

unescaped

§

date_century

§

date_decade

§

date_subdecade

§

date_year

§

date_fullyear

§

date_month

§

date_wday

§

date_mday

§

date_yday

§

date_week

§

datepart_fullyear

§

datepart_ptyear

§

datepart_wkyear

§

dateopt_century

§

dateopt_fullyear

§

dateopt_year

§

dateopt_month

§

dateopt_week

§

datespec_full

§

datespec_year

§

datespec_month

§

datespec_mday

§

datespec_week

§

datespec_wday

§

datespec_yday

§

date

§

time_hour

§

time_minute

§

time_second

§

time_fraction

§

time_numoffset

§

time_zone

§

timeopt_hour

§

timeopt_minute

§

timespec_hour

§

timespec_minute

§

timespec_second

§

timespec_base

§

time

§

iso_date_time

§

dur_second

§

dur_minute

§

dur_hour

§

dur_time

§

dur_day

§

dur_week

§

dur_month

§

dur_year

§

dur_date

§

duration

§

period_explicit

§

period_start

§

period_end

§

period

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 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Rule

Source§

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

Formats the value using the given formatter. Read more
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 · Source§

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

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

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

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

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

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

impl Parser<Rule> for MongoDbParser

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
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 · 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 · 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 · 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 · 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 Copy for Rule

Source§

impl Eq for Rule

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 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<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

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