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
span: Span
The span of this capture name.
name: String
The capture name.
index: u32
The capture index.
Trait Implementations
impl Clone for CaptureName[src]
fn clone(&self) -> CaptureName[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for CaptureName[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Eq for CaptureName[src]
impl PartialEq for CaptureName[src]
fn eq(&self, __arg_0: &CaptureName) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &CaptureName) -> bool[src]
This method tests for !=.