Struct regex_automata::util::interpolate::CaptureRef
source · struct CaptureRef<'a> {
cap: Ref<'a>,
end: usize,
}
Expand description
CaptureRef
represents a reference to a capture group inside some text.
The reference is either a capture group name or a number.
It is also tagged with the position in the text following the capture reference.
Fields§
§cap: Ref<'a>
§end: usize
Trait Implementations§
source§impl<'a> Clone for CaptureRef<'a>
impl<'a> Clone for CaptureRef<'a>
source§fn clone(&self) -> CaptureRef<'a>
fn clone(&self) -> CaptureRef<'a>
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<'a> Debug for CaptureRef<'a>
impl<'a> Debug for CaptureRef<'a>
source§impl<'a> PartialEq for CaptureRef<'a>
impl<'a> PartialEq for CaptureRef<'a>
impl<'a> Copy for CaptureRef<'a>
impl<'a> Eq for CaptureRef<'a>
impl<'a> StructuralPartialEq for CaptureRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for CaptureRef<'a>
impl<'a> RefUnwindSafe for CaptureRef<'a>
impl<'a> Send for CaptureRef<'a>
impl<'a> Sync for CaptureRef<'a>
impl<'a> Unpin for CaptureRef<'a>
impl<'a> UnwindSafe for CaptureRef<'a>
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)