[][src]Struct onig::SyntaxOperator

pub struct SyntaxOperator { /* fields omitted */ }

Defines the different operators allowed within a regex syntax.

Implementations

impl SyntaxOperator[src]

pub const SYNTAX_OPERATOR_DOT_ANYCHAR: SyntaxOperator[src]

.

pub const SYNTAX_OPERATOR_ASTERISK_ZERO_INF: SyntaxOperator[src]

*

pub const SYNTAX_OPERATOR_PLUS_ONE_INF: SyntaxOperator[src]

+

pub const SYNTAX_OPERATOR_QMARK_ZERO_ONE: SyntaxOperator[src]

?

pub const SYNTAX_OPERATOR_BRACE_INTERVAL: SyntaxOperator[src]

{lower,upper}

pub const SYNTAX_OPERATOR_ESC_BRACE_INTERVAL: SyntaxOperator[src]

\{lower,upper\}

pub const SYNTAX_OPERATOR_VBAR_ALT: SyntaxOperator[src]

|

pub const SYNTAX_OPERATOR_ESC_VBAR_ALT: SyntaxOperator[src]

\|

pub const SYNTAX_OPERATOR_LPAREN_SUBEXP: SyntaxOperator[src]

(...)

pub const SYNTAX_OPERATOR_ESC_LPAREN_SUBEXP: SyntaxOperator[src]

\(...\)

pub const SYNTAX_OPERATOR_ESC_AZ_BUF_ANCHOR: SyntaxOperator[src]

\A, \Z, \z

pub const SYNTAX_OPERATOR_ESC_CAPITAL_G_BEGIN_ANCHOR: SyntaxOperator[src]

\G

pub const SYNTAX_OPERATOR_DECIMAL_BACKREF: SyntaxOperator[src]

\num

pub const SYNTAX_OPERATOR_BRACKET_CC: SyntaxOperator[src]

[...]

pub const SYNTAX_OPERATOR_ESC_W_WORD: SyntaxOperator[src]

\w, \W

pub const SYNTAX_OPERATOR_ESC_LTGT_WORD_BEGIN_END: SyntaxOperator[src]

\<. \>

pub const SYNTAX_OPERATOR_ESC_B_WORD_BOUND: SyntaxOperator[src]

\b, \B

pub const SYNTAX_OPERATOR_ESC_S_WHITE_SPACE: SyntaxOperator[src]

\s, \S

pub const SYNTAX_OPERATOR_ESC_D_DIGIT: SyntaxOperator[src]

\d, \D

pub const SYNTAX_OPERATOR_LINE_ANCHOR: SyntaxOperator[src]

^, $

pub const SYNTAX_OPERATOR_POSIX_BRACKET: SyntaxOperator[src]

[:xxxx:]

pub const SYNTAX_OPERATOR_QMARK_NON_GREEDY: SyntaxOperator[src]

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

pub const SYNTAX_OPERATOR_ESC_CONTROL_CHARS: SyntaxOperator[src]

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

pub const SYNTAX_OPERATOR_ESC_C_CONTROL: SyntaxOperator[src]

\cx

pub const SYNTAX_OPERATOR_ESC_OCTAL3: SyntaxOperator[src]

\OOO

pub const SYNTAX_OPERATOR_ESC_X_HEX2: SyntaxOperator[src]

\xHH

pub const SYNTAX_OPERATOR_ESC_X_BRACE_HEX8: SyntaxOperator[src]

\x{7HHHHHHH}

pub const SYNTAX_OPERATOR_VARIABLE_META_CHARACTERS: SyntaxOperator[src]

Variable meta characters

pub const SYNTAX_OPERATOR_ESC_CAPITAL_Q_QUOTE: SyntaxOperator[src]

\Q...\E

pub const SYNTAX_OPERATOR_QMARK_GROUP_EFFECT: SyntaxOperator[src]

(?...)

pub const SYNTAX_OPERATOR_OPTION_PERL: SyntaxOperator[src]

(?imsx),(?-imsx)

pub const SYNTAX_OPERATOR_OPTION_RUBY: SyntaxOperator[src]

(?imx), (?-imx)

pub const SYNTAX_OPERATOR_PLUS_POSSESSIVE_REPEAT: SyntaxOperator[src]

?+,*+,++

pub const SYNTAX_OPERATOR_PLUS_POSSESSIVE_INTERVAL: SyntaxOperator[src]

{n,m}+

pub const SYNTAX_OPERATOR_CCLASS_SET_OP: SyntaxOperator[src]

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

pub const SYNTAX_OPERATOR_QMARK_LT_NAMED_GROUP: SyntaxOperator[src]

(?<name>...)

pub const SYNTAX_OPERATOR_ESC_K_NAMED_BACKREF: SyntaxOperator[src]

\k<name>

pub const SYNTAX_OPERATOR_ESC_G_SUBEXP_CALL: SyntaxOperator[src]

\g<name>, \g<n>

pub const SYNTAX_OPERATOR_ATMARK_CAPTURE_HISTORY: SyntaxOperator[src]

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

pub const SYNTAX_OPERATOR_ESC_CAPITAL_C_BAR_CONTROL: SyntaxOperator[src]

\C-x

pub const SYNTAX_OPERATOR_ESC_CAPITAL_M_BAR_META: SyntaxOperator[src]

\M-x

pub const SYNTAX_OPERATOR_ESC_V_VTAB: SyntaxOperator[src]

\v as VTAB

pub const SYNTAX_OPERATOR_ESC_U_HEX4: SyntaxOperator[src]

\uHHHH

pub const SYNTAX_OPERATOR_ESC_GNU_BUF_ANCHOR: SyntaxOperator[src]

\, '`

pub const SYNTAX_OPERATOR_ESC_P_BRACE_CHAR_PROPERTY: SyntaxOperator[src]

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

pub const SYNTAX_OPERATOR_ESC_P_BRACE_CIRCUMFLEX_NOT: SyntaxOperator[src]

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

pub const SYNTAX_OPERATOR_ESC_H_XDIGIT: SyntaxOperator[src]

\h, \H

pub const SYNTAX_OPERATOR_INEFFECTIVE_ESCAPE: SyntaxOperator[src]

\

pub const fn empty() -> SyntaxOperator[src]

Returns an empty set of flags

pub const fn all() -> SyntaxOperator[src]

Returns the set containing all flags.

pub const fn bits(&self) -> u64[src]

Returns the raw value of the flags currently stored.

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

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[src]

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

pub const unsafe fn from_bits_unchecked(bits: u64) -> SyntaxOperator[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

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

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

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

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

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

Inserts the specified flags in-place.

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

Removes the specified flags in-place.

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

Toggles the specified flags in-place.

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

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

Trait Implementations

impl Binary for SyntaxOperator[src]

impl BitAnd<SyntaxOperator> for SyntaxOperator[src]

type Output = SyntaxOperator

The resulting type after applying the & operator.

fn bitand(self, other: SyntaxOperator) -> SyntaxOperator[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<SyntaxOperator> for SyntaxOperator[src]

fn bitand_assign(&mut self, other: SyntaxOperator)[src]

Disables all flags disabled in the set.

impl BitOr<SyntaxOperator> for SyntaxOperator[src]

type Output = SyntaxOperator

The resulting type after applying the | operator.

fn bitor(self, other: SyntaxOperator) -> SyntaxOperator[src]

Returns the union of the two sets of flags.

impl BitOrAssign<SyntaxOperator> for SyntaxOperator[src]

fn bitor_assign(&mut self, other: SyntaxOperator)[src]

Adds the set of flags.

impl BitXor<SyntaxOperator> for SyntaxOperator[src]

type Output = SyntaxOperator

The resulting type after applying the ^ operator.

fn bitxor(self, other: SyntaxOperator) -> SyntaxOperator[src]

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

impl BitXorAssign<SyntaxOperator> for SyntaxOperator[src]

fn bitxor_assign(&mut self, other: SyntaxOperator)[src]

Toggles the set of flags.

impl Clone for SyntaxOperator[src]

impl Copy for SyntaxOperator[src]

impl Debug for SyntaxOperator[src]

impl Eq for SyntaxOperator[src]

impl Extend<SyntaxOperator> for SyntaxOperator[src]

impl FromIterator<SyntaxOperator> for SyntaxOperator[src]

impl Hash for SyntaxOperator[src]

impl LowerHex for SyntaxOperator[src]

impl Not for SyntaxOperator[src]

type Output = SyntaxOperator

The resulting type after applying the ! operator.

fn not(self) -> SyntaxOperator[src]

Returns the complement of this set of flags.

impl Octal for SyntaxOperator[src]

impl Ord for SyntaxOperator[src]

impl PartialEq<SyntaxOperator> for SyntaxOperator[src]

impl PartialOrd<SyntaxOperator> for SyntaxOperator[src]

impl StructuralEq for SyntaxOperator[src]

impl StructuralPartialEq for SyntaxOperator[src]

impl Sub<SyntaxOperator> for SyntaxOperator[src]

type Output = SyntaxOperator

The resulting type after applying the - operator.

fn sub(self, other: SyntaxOperator) -> SyntaxOperator[src]

Returns the set difference of the two sets of flags.

impl SubAssign<SyntaxOperator> for SyntaxOperator[src]

fn sub_assign(&mut self, other: SyntaxOperator)[src]

Disables all flags enabled in the set.

impl UpperHex for SyntaxOperator[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.