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
sourceimpl Clone for CaptureName
impl Clone for CaptureName
sourcefn clone(&self) -> CaptureName
fn clone(&self) -> CaptureName
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CaptureName
impl Debug for CaptureName
sourceimpl PartialEq<CaptureName> for CaptureName
impl PartialEq<CaptureName> for CaptureName
sourcefn eq(&self, other: &CaptureName) -> bool
fn eq(&self, other: &CaptureName) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CaptureName) -> bool
fn ne(&self, other: &CaptureName) -> bool
This method tests for !=
.
impl Eq for CaptureName
impl StructuralEq for CaptureName
impl StructuralPartialEq for CaptureName
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more