Struct onig::Syntax [−][src]
#[repr(transparent)]pub struct Syntax { /* fields omitted */ }
Expand description
Onig Syntax Wrapper
Each syntax dfines a flavour of regex syntax. This type allows
interaction with the built-in syntaxes through the static accessor
functions (Syntax::emacs()
, Syntax::default()
etc.) and the
creation of custom syntaxes.
For a demonstration of creating a custom syntax see
examples/syntax.rs
in the main onig crate.
Implementations
POSIX Basic RE syntax
POSIX Extended RE syntax
Retrieve the operators for this syntax
Replace the operators for this syntax
Enable Operators for this Syntax
Updates the operators for this syntax to enable the chosen ones.
Disable Operators for this Syntax
Updates the operators for this syntax to remove the specified operators.
Retrieves the syntax behaviours
Overwrite the syntax behaviour for this syntax.
Enable a given behaviour for this syntax
Disable a given behaviour for this syntax
Retireve the syntax options for this syntax
Replace the syntax options for this syntax
Set a given meta character’s state
Arguments:
what
: The meta character to updatemeta
: The value to set the meta character to
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Syntax
impl UnwindSafe for Syntax
Blanket Implementations
Mutably borrows from an owned value. Read more