pub struct CaptureName {
pub span: Span,
pub name: String,
pub index: u32,
}
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 moreSource§impl Debug for CaptureName
impl Debug for CaptureName
Source§impl PartialEq for CaptureName
impl PartialEq for CaptureName
impl Eq for CaptureName
impl StructuralPartialEq for CaptureName
Auto Trait Implementations§
impl Freeze for CaptureName
impl RefUnwindSafe for CaptureName
impl Send for CaptureName
impl Sync for CaptureName
impl Unpin for CaptureName
impl UnwindSafe for CaptureName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 80 bytes