Struct onig::SyntaxOperator[]

pub struct SyntaxOperator { /* fields omitted */ }

Defines the different operators allowed within a regex syntax.

Methods

impl SyntaxOperator

SYNTAX_OPERATOR_DOT_ANYCHAR: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_DOT_ANYCHAR as u64,}

.

SYNTAX_OPERATOR_ASTERISK_ZERO_INF: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_ASTERISK_ZERO_INF as u64,}

*

SYNTAX_OPERATOR_PLUS_ONE_INF: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_PLUS_ONE_INF as u64,}

+

SYNTAX_OPERATOR_QMARK_ZERO_ONE: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_QMARK_ZERO_ONE as u64,}

?

SYNTAX_OPERATOR_BRACE_INTERVAL: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_BRACE_INTERVAL as u64,}

{lower,upper}

SYNTAX_OPERATOR_ESC_BRACE_INTERVAL: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_ESC_BRACE_INTERVAL as u64,}

\{lower,upper\}

SYNTAX_OPERATOR_VBAR_ALT: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_VBAR_ALT as u64,}

|

SYNTAX_OPERATOR_ESC_VBAR_ALT: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_ESC_VBAR_ALT as u64,}

\|

SYNTAX_OPERATOR_LPAREN_SUBEXP: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_LPAREN_SUBEXP as u64,}

(...)

SYNTAX_OPERATOR_ESC_LPAREN_SUBEXP: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_ESC_LPAREN_SUBEXP as u64,}

\(...\)

SYNTAX_OPERATOR_ESC_AZ_BUF_ANCHOR: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_ESC_AZ_BUF_ANCHOR as u64,}

\A, \Z, \z

SYNTAX_OPERATOR_ESC_CAPITAL_G_BEGIN_ANCHOR: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_ESC_CAPITAL_G_BEGIN_ANCHOR as u64,}

\G

SYNTAX_OPERATOR_DECIMAL_BACKREF: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_DECIMAL_BACKREF as u64,}

\num

SYNTAX_OPERATOR_BRACKET_CC: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_BRACKET_CC as u64,}

[...]

SYNTAX_OPERATOR_ESC_W_WORD: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_ESC_W_WORD as u64,}

\w, \W

SYNTAX_OPERATOR_ESC_LTGT_WORD_BEGIN_END: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END as u64,}

\<. \>

SYNTAX_OPERATOR_ESC_B_WORD_BOUND: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_ESC_B_WORD_BOUND as u64,}

\b, \B

SYNTAX_OPERATOR_ESC_S_WHITE_SPACE: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_ESC_S_WHITE_SPACE as u64,}

\s, \S

SYNTAX_OPERATOR_ESC_D_DIGIT: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_ESC_D_DIGIT as u64,}

\d, \D

SYNTAX_OPERATOR_LINE_ANCHOR: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_LINE_ANCHOR as u64,}

^, $

SYNTAX_OPERATOR_POSIX_BRACKET: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_POSIX_BRACKET as u64,}

[:xxxx:]

SYNTAX_OPERATOR_QMARK_NON_GREEDY: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_QMARK_NON_GREEDY as u64,}

??,*?,+?,{n,m}?

SYNTAX_OPERATOR_ESC_CONTROL_CHARS: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_ESC_CONTROL_CHARS as u64,}

\n,\r,\t,\a ...

SYNTAX_OPERATOR_ESC_C_CONTROL: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_ESC_C_CONTROL as u64,}

\cx

SYNTAX_OPERATOR_ESC_OCTAL3: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_ESC_OCTAL3 as u64,}

\OOO

SYNTAX_OPERATOR_ESC_X_HEX2: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_ESC_X_HEX2 as u64,}

\xHH

SYNTAX_OPERATOR_ESC_X_BRACE_HEX8: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_ESC_X_BRACE_HEX8 as u64,}

\x{7HHHHHHH}

SYNTAX_OPERATOR_VARIABLE_META_CHARACTERS: SyntaxOperator = SyntaxOperator{bits: onig_sys::ONIG_SYN_OP_VARIABLE_META_CHARACTERS as u64,}

Variable meta characters

SYNTAX_OPERATOR_ESC_CAPITAL_Q_QUOTE: SyntaxOperator = SyntaxOperator{bits:
                   (onig_sys::ONIG_SYN_OP2_ESC_CAPITAL_Q_QUOTE as u64) << 32,}

\Q...\E

SYNTAX_OPERATOR_QMARK_GROUP_EFFECT: SyntaxOperator = SyntaxOperator{bits:
                   (onig_sys::ONIG_SYN_OP2_QMARK_GROUP_EFFECT as u64) << 32,}

(?...)

SYNTAX_OPERATOR_OPTION_PERL: SyntaxOperator = SyntaxOperator{bits: (onig_sys::ONIG_SYN_OP2_OPTION_PERL as u64) << 32,}

(?imsx),(?-imsx)

SYNTAX_OPERATOR_OPTION_RUBY: SyntaxOperator = SyntaxOperator{bits: (onig_sys::ONIG_SYN_OP2_OPTION_RUBY as u64) << 32,}

(?imx), (?-imx)

SYNTAX_OPERATOR_PLUS_POSSESSIVE_REPEAT: SyntaxOperator = SyntaxOperator{bits:
                   (onig_sys::ONIG_SYN_OP2_PLUS_POSSESSIVE_REPEAT as u64) <<
                       32,}

?+,*+,++

SYNTAX_OPERATOR_PLUS_POSSESSIVE_INTERVAL: SyntaxOperator = SyntaxOperator{bits:
                   (onig_sys::ONIG_SYN_OP2_PLUS_POSSESSIVE_INTERVAL as u64) <<
                       32,}

{n,m}+

SYNTAX_OPERATOR_CCLASS_SET_OP: SyntaxOperator = SyntaxOperator{bits: (onig_sys::ONIG_SYN_OP2_CCLASS_SET_OP as u64) << 32,}

[...&&..[..]..]

SYNTAX_OPERATOR_QMARK_LT_NAMED_GROUP: SyntaxOperator = SyntaxOperator{bits:
                   (onig_sys::ONIG_SYN_OP2_QMARK_LT_NAMED_GROUP as u64) <<
                       32,}

(?<name>...)

SYNTAX_OPERATOR_ESC_K_NAMED_BACKREF: SyntaxOperator = SyntaxOperator{bits:
                   (onig_sys::ONIG_SYN_OP2_ESC_K_NAMED_BACKREF as u64) << 32,}

\k<name>

SYNTAX_OPERATOR_ESC_G_SUBEXP_CALL: SyntaxOperator = SyntaxOperator{bits: (onig_sys::ONIG_SYN_OP2_ESC_G_SUBEXP_CALL as u64) << 32,}

\g<name>, \g<n>

SYNTAX_OPERATOR_ATMARK_CAPTURE_HISTORY: SyntaxOperator = SyntaxOperator{bits:
                   (onig_sys::ONIG_SYN_OP2_ATMARK_CAPTURE_HISTORY as u64) <<
                       32,}

(?@..),(?@<x>..)

SYNTAX_OPERATOR_ESC_CAPITAL_C_BAR_CONTROL: SyntaxOperator = SyntaxOperator{bits:
                   (onig_sys::ONIG_SYN_OP2_ESC_CAPITAL_C_BAR_CONTROL as u64)
                       << 32,}

\C-x

SYNTAX_OPERATOR_ESC_CAPITAL_M_BAR_META: SyntaxOperator = SyntaxOperator{bits:
                   (onig_sys::ONIG_SYN_OP2_ESC_CAPITAL_M_BAR_META as u64) <<
                       32,}

\M-x

SYNTAX_OPERATOR_ESC_V_VTAB: SyntaxOperator = SyntaxOperator{bits: (onig_sys::ONIG_SYN_OP2_ESC_V_VTAB as u64) << 32,}

\v as VTAB

SYNTAX_OPERATOR_ESC_U_HEX4: SyntaxOperator = SyntaxOperator{bits: (onig_sys::ONIG_SYN_OP2_ESC_U_HEX4 as u64) << 32,}

\uHHHH

SYNTAX_OPERATOR_ESC_GNU_BUF_ANCHOR: SyntaxOperator = SyntaxOperator{bits:
                   (onig_sys::ONIG_SYN_OP2_ESC_GNU_BUF_ANCHOR as u64) << 32,}

\, '`

SYNTAX_OPERATOR_ESC_P_BRACE_CHAR_PROPERTY: SyntaxOperator = SyntaxOperator{bits:
                   (onig_sys::ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTY as u64)
                       << 32,}

\p{...}, \P{...}

SYNTAX_OPERATOR_ESC_P_BRACE_CIRCUMFLEX_NOT: SyntaxOperator = SyntaxOperator{bits:
                   (onig_sys::ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOT as u64)
                       << 32,}

\p{^..}, \P{^..}

SYNTAX_OPERATOR_ESC_H_XDIGIT: SyntaxOperator = SyntaxOperator{bits: (onig_sys::ONIG_SYN_OP2_ESC_H_XDIGIT as u64) << 32,}

\h, \H

SYNTAX_OPERATOR_INEFFECTIVE_ESCAPE: SyntaxOperator = SyntaxOperator{bits:
                   (onig_sys::ONIG_SYN_OP2_INEFFECTIVE_ESCAPE as u64) << 32,}

\

Returns an empty set of flags.

Returns the set containing all flags.

Returns the raw value of the flags currently stored.

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

Returns true if no flags are currently stored.

Returns true if all flags are currently set.

Returns true if there are flags common to both self and other.

Returns true all of the flags in other are contained within self.

Inserts the specified flags in-place.

Removes the specified flags in-place.

Toggles the specified flags in-place.

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Copy for SyntaxOperator

impl PartialEq for SyntaxOperator

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for SyntaxOperator

impl Clone for SyntaxOperator

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialOrd for SyntaxOperator

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for SyntaxOperator

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for SyntaxOperator

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for SyntaxOperator

Formats the value using the given formatter. Read more

impl Binary for SyntaxOperator

Formats the value using the given formatter.

impl Octal for SyntaxOperator

Formats the value using the given formatter.

impl LowerHex for SyntaxOperator

Formats the value using the given formatter.

impl UpperHex for SyntaxOperator

Formats the value using the given formatter.

impl BitOr for SyntaxOperator

The resulting type after applying the | operator.

Returns the union of the two sets of flags.

impl BitOrAssign for SyntaxOperator

Adds the set of flags.

impl BitXor for SyntaxOperator

The resulting type after applying the ^ operator.

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign for SyntaxOperator

Toggles the set of flags.

impl BitAnd for SyntaxOperator

The resulting type after applying the & operator.

Returns the intersection between the two sets of flags.

impl BitAndAssign for SyntaxOperator

Disables all flags disabled in the set.

impl Sub for SyntaxOperator

The resulting type after applying the - operator.

Returns the set difference of the two sets of flags.

impl SubAssign for SyntaxOperator

Disables all flags enabled in the set.

impl Not for SyntaxOperator

The resulting type after applying the ! operator.

Returns the complement of this set of flags.

impl Extend<SyntaxOperator> for SyntaxOperator

Extends a collection with the contents of an iterator. Read more

impl FromIterator<SyntaxOperator> for SyntaxOperator

Creates a value from an iterator. Read more

Auto Trait Implementations