Struct onig::Syntax [] [src]

pub struct Syntax { /* fields omitted */ }

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 repo.

Methods

impl Syntax
[src]

[src]

Plain text syntax

[src]

POSIX Basic RE syntax

[src]

POSIX Extended RE syntax

[src]

Emacs syntax

[src]

Grep syntax

[src]

GNU regex syntax

[src]

Java (Sun java.util.regex) syntax

[src]

Perl syntax

[src]

Perl + named group syntax

[src]

Ruby syntax

[src]

Oniguruma Syntax

[src]

Default syntax (Ruby syntax)

[src]

Retrieve the operators for this syntax

[src]

Replace the operators for this syntax

[src]

Enable Operators for this Syntax

Updates the operators for this syntax to enable the chosen ones.

[src]

Disable Operators for this Syntax

Updates the operators for this syntax to remove the specified operators.

[src]

Retrieves the syntax behaviours

[src]

Overwrite the syntax behaviour for this syntax.

[src]

Enable a given behaviour for this syntax

[src]

Disable a given behaviour for this syntax

[src]

Retireve the syntax options for this syntax

[src]

Replace the syntax options for this syntax

[src]

Set a given meta character's state

Arguments:

  • what: The meta character to update
  • meta: The value to set the meta character to

Trait Implementations

impl Debug for Syntax
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Syntax
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Syntax
[src]

Auto Trait Implementations

impl Send for Syntax

impl Sync for Syntax