[−][src]Struct onig::SyntaxOperator
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]
fn clone(&self) -> SyntaxOperator
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SyntaxOperator
[src]
impl Debug for SyntaxOperator
[src]
impl Eq for SyntaxOperator
[src]
impl Extend<SyntaxOperator> for SyntaxOperator
[src]
fn extend<T: IntoIterator<Item = SyntaxOperator>>(&mut self, iterator: T)
[src]
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
impl FromIterator<SyntaxOperator> for SyntaxOperator
[src]
fn from_iter<T: IntoIterator<Item = SyntaxOperator>>(
iterator: T
) -> SyntaxOperator
[src]
iterator: T
) -> SyntaxOperator
impl Hash for SyntaxOperator
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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]
fn cmp(&self, other: &SyntaxOperator) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<SyntaxOperator> for SyntaxOperator
[src]
fn eq(&self, other: &SyntaxOperator) -> bool
[src]
fn ne(&self, other: &SyntaxOperator) -> bool
[src]
impl PartialOrd<SyntaxOperator> for SyntaxOperator
[src]
fn partial_cmp(&self, other: &SyntaxOperator) -> Option<Ordering>
[src]
fn lt(&self, other: &SyntaxOperator) -> bool
[src]
fn le(&self, other: &SyntaxOperator) -> bool
[src]
fn gt(&self, other: &SyntaxOperator) -> bool
[src]
fn ge(&self, other: &SyntaxOperator) -> bool
[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
impl RefUnwindSafe for SyntaxOperator
impl Send for SyntaxOperator
impl Sync for SyntaxOperator
impl Unpin for SyntaxOperator
impl UnwindSafe for SyntaxOperator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,