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§
source§impl Clone for CaptureName
impl Clone for CaptureName
source§fn clone(&self) -> CaptureName
fn clone(&self) -> CaptureName
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more