Struct regex_syntax::ast::CaptureName
source · [−]Expand description
A capture name.
This corresponds to the name itself between the angle brackets in, e.g.,
(?P<foo>expr)
.
Fields
span: Span
The span of this capture name.
name: String
The capture name.
index: u32
The capture index.
Trait Implementations
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 RefUnwindSafe for CaptureName
impl Send for CaptureName
impl Sync for CaptureName
impl Unpin for CaptureName
impl UnwindSafe for CaptureName
Blanket Implementations
Mutably borrows from an owned value. Read more