Struct regex_syntax::ast::CaptureName [] [src]

pub struct CaptureName {
    pub span: Span,
    pub name: String,
    pub index: u32,
}

A capture name.

This corresponds to the name itself between the angle brackets in, e.g., (?P<foo>expr).

Fields

The span of this capture name.

The capture name.

The capture index.

Trait Implementations

impl Clone for CaptureName
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CaptureName
[src]

Formats the value using the given formatter. Read more

impl Eq for CaptureName
[src]

impl PartialEq for CaptureName
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for CaptureName

impl Sync for CaptureName