[]Struct onig::SyntaxOperator

pub struct SyntaxOperator { /* fields omitted */ }

Defines the different operators allowed within a regex syntax.

Methods

impl SyntaxOperator

pub const SYNTAX_OPERATOR_DOT_ANYCHAR: SyntaxOperator

.

pub const SYNTAX_OPERATOR_ASTERISK_ZERO_INF: SyntaxOperator

*

pub const SYNTAX_OPERATOR_PLUS_ONE_INF: SyntaxOperator

+

pub const SYNTAX_OPERATOR_QMARK_ZERO_ONE: SyntaxOperator

?

pub const SYNTAX_OPERATOR_BRACE_INTERVAL: SyntaxOperator

{lower,upper}

pub const SYNTAX_OPERATOR_ESC_BRACE_INTERVAL: SyntaxOperator

\{lower,upper\}

pub const SYNTAX_OPERATOR_VBAR_ALT: SyntaxOperator

|

pub const SYNTAX_OPERATOR_ESC_VBAR_ALT: SyntaxOperator

\|

pub const SYNTAX_OPERATOR_LPAREN_SUBEXP: SyntaxOperator

(...)

pub const SYNTAX_OPERATOR_ESC_LPAREN_SUBEXP: SyntaxOperator

\(...\)

pub const SYNTAX_OPERATOR_ESC_AZ_BUF_ANCHOR: SyntaxOperator

\A, \Z, \z

pub const SYNTAX_OPERATOR_ESC_CAPITAL_G_BEGIN_ANCHOR: SyntaxOperator

\G

pub const SYNTAX_OPERATOR_DECIMAL_BACKREF: SyntaxOperator

\num

pub const SYNTAX_OPERATOR_BRACKET_CC: SyntaxOperator

[...]

pub const SYNTAX_OPERATOR_ESC_W_WORD: SyntaxOperator

\w, \W

pub const SYNTAX_OPERATOR_ESC_LTGT_WORD_BEGIN_END: SyntaxOperator

\<. \>

pub const SYNTAX_OPERATOR_ESC_B_WORD_BOUND: SyntaxOperator

\b, \B

pub const SYNTAX_OPERATOR_ESC_S_WHITE_SPACE: SyntaxOperator

\s, \S

pub const SYNTAX_OPERATOR_ESC_D_DIGIT: SyntaxOperator

\d, \D

pub const SYNTAX_OPERATOR_LINE_ANCHOR: SyntaxOperator

^, $

pub const SYNTAX_OPERATOR_POSIX_BRACKET: SyntaxOperator

[:xxxx:]

pub const SYNTAX_OPERATOR_QMARK_NON_GREEDY: SyntaxOperator

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

pub const SYNTAX_OPERATOR_ESC_CONTROL_CHARS: SyntaxOperator

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

pub const SYNTAX_OPERATOR_ESC_C_CONTROL: SyntaxOperator

\cx

pub const SYNTAX_OPERATOR_ESC_OCTAL3: SyntaxOperator

\OOO

pub const SYNTAX_OPERATOR_ESC_X_HEX2: SyntaxOperator

\xHH

pub const SYNTAX_OPERATOR_ESC_X_BRACE_HEX8: SyntaxOperator

\x{7HHHHHHH}

pub const SYNTAX_OPERATOR_VARIABLE_META_CHARACTERS: SyntaxOperator

Variable meta characters

pub const SYNTAX_OPERATOR_ESC_CAPITAL_Q_QUOTE: SyntaxOperator

\Q...\E

pub const SYNTAX_OPERATOR_QMARK_GROUP_EFFECT: SyntaxOperator

(?...)

pub const SYNTAX_OPERATOR_OPTION_PERL: SyntaxOperator

(?imsx),(?-imsx)

pub const SYNTAX_OPERATOR_OPTION_RUBY: SyntaxOperator

(?imx), (?-imx)

pub const SYNTAX_OPERATOR_PLUS_POSSESSIVE_REPEAT: SyntaxOperator

?+,*+,++

pub const SYNTAX_OPERATOR_PLUS_POSSESSIVE_INTERVAL: SyntaxOperator

{n,m}+

pub const SYNTAX_OPERATOR_CCLASS_SET_OP: SyntaxOperator

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

pub const SYNTAX_OPERATOR_QMARK_LT_NAMED_GROUP: SyntaxOperator

(?<name>...)

pub const SYNTAX_OPERATOR_ESC_K_NAMED_BACKREF: SyntaxOperator

\k<name>

pub const SYNTAX_OPERATOR_ESC_G_SUBEXP_CALL: SyntaxOperator

\g<name>, \g<n>

pub const SYNTAX_OPERATOR_ATMARK_CAPTURE_HISTORY: SyntaxOperator

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

pub const SYNTAX_OPERATOR_ESC_CAPITAL_C_BAR_CONTROL: SyntaxOperator

\C-x

pub const SYNTAX_OPERATOR_ESC_CAPITAL_M_BAR_META: SyntaxOperator

\M-x

pub const SYNTAX_OPERATOR_ESC_V_VTAB: SyntaxOperator

\v as VTAB

pub const SYNTAX_OPERATOR_ESC_U_HEX4: SyntaxOperator

\uHHHH

pub const SYNTAX_OPERATOR_ESC_GNU_BUF_ANCHOR: SyntaxOperator

\, '`

pub const SYNTAX_OPERATOR_ESC_P_BRACE_CHAR_PROPERTY: SyntaxOperator

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

pub const SYNTAX_OPERATOR_ESC_P_BRACE_CIRCUMFLEX_NOT: SyntaxOperator

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

pub const SYNTAX_OPERATOR_ESC_H_XDIGIT: SyntaxOperator

\h, \H

pub const SYNTAX_OPERATOR_INEFFECTIVE_ESCAPE: SyntaxOperator

\

pub const fn empty() -> SyntaxOperator

Returns an empty set of flags

pub const fn all() -> SyntaxOperator

Returns the set containing all flags.

pub const fn bits(&self) -> u64

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u64) -> Option<SyntaxOperator>

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

pub const fn from_bits_truncate(bits: u64) -> SyntaxOperator

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

pub const fn is_empty(&self) -> bool

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool

Returns true if all flags are currently set.

pub const fn intersects(&self, other: SyntaxOperator) -> bool

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

pub const fn contains(&self, other: SyntaxOperator) -> bool

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

pub fn insert(&mut self, other: SyntaxOperator)

Inserts the specified flags in-place.

pub fn remove(&mut self, other: SyntaxOperator)

Removes the specified flags in-place.

pub fn toggle(&mut self, other: SyntaxOperator)

Toggles the specified flags in-place.

pub fn set(&mut self, other: SyntaxOperator, value: bool)

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

Trait Implementations

impl Clone for SyntaxOperator

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Ord for SyntaxOperator

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl Extend<SyntaxOperator> for SyntaxOperator

impl PartialOrd<SyntaxOperator> for SyntaxOperator

impl PartialEq<SyntaxOperator> for SyntaxOperator

impl Copy for SyntaxOperator

impl Eq for SyntaxOperator

impl Debug for SyntaxOperator

impl Sub<SyntaxOperator> for SyntaxOperator

type Output = SyntaxOperator

The resulting type after applying the - operator.

fn sub(self, other: SyntaxOperator) -> SyntaxOperator

Returns the set difference of the two sets of flags.

impl SubAssign<SyntaxOperator> for SyntaxOperator

fn sub_assign(&mut self, other: SyntaxOperator)

Disables all flags enabled in the set.

impl Not for SyntaxOperator

type Output = SyntaxOperator

The resulting type after applying the ! operator.

fn not(self) -> SyntaxOperator

Returns the complement of this set of flags.

impl BitAnd<SyntaxOperator> for SyntaxOperator

type Output = SyntaxOperator

The resulting type after applying the & operator.

fn bitand(self, other: SyntaxOperator) -> SyntaxOperator

Returns the intersection between the two sets of flags.

impl BitOr<SyntaxOperator> for SyntaxOperator

type Output = SyntaxOperator

The resulting type after applying the | operator.

fn bitor(self, other: SyntaxOperator) -> SyntaxOperator

Returns the union of the two sets of flags.

impl BitXor<SyntaxOperator> for SyntaxOperator

type Output = SyntaxOperator

The resulting type after applying the ^ operator.

fn bitxor(self, other: SyntaxOperator) -> SyntaxOperator

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

impl BitAndAssign<SyntaxOperator> for SyntaxOperator

fn bitand_assign(&mut self, other: SyntaxOperator)

Disables all flags disabled in the set.

impl BitOrAssign<SyntaxOperator> for SyntaxOperator

fn bitor_assign(&mut self, other: SyntaxOperator)

Adds the set of flags.

impl BitXorAssign<SyntaxOperator> for SyntaxOperator

fn bitxor_assign(&mut self, other: SyntaxOperator)

Toggles the set of flags.

impl Hash for SyntaxOperator

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

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

impl FromIterator<SyntaxOperator> for SyntaxOperator

impl Octal for SyntaxOperator

impl Binary for SyntaxOperator

impl LowerHex for SyntaxOperator

impl UpperHex for SyntaxOperator

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]