Struct CaptureName
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: SpanThe span of this capture name.
name: StringThe capture name.
index: u32The capture index.
Trait Implementations
impl Clone for CaptureName
fn clone(&self) -> Self
impl Debug for CaptureName
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for CaptureName
impl PartialEq for CaptureName
fn eq(&self, other: &Self) -> bool