Struct rslint_regex::Parser[][src]

pub struct Parser<'pat> {
    pub pattern: &'pat str,
    pub file_id: usize,
    pub ecma_version: EcmaVersion,
    // some fields omitted
}
Expand description

The actual parser that is responsible for parsing regex.

Fields

pattern: &'pat strfile_id: usizeecma_version: EcmaVersion

Implementations

Creates a new Parser from a given full pattern.

The given offset is used to convert the relative position in the pattern into an absolute position inside a file. The pattern must be the pattern without the leading and trailing /

Panics

Panics if there is no leading or trailing /

Returns

Returns a Result from parsing flags

The main entrypoint for parsing a RegEx pattern.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.