pub struct CaptureLocations { /* private fields */ }Expand description
Reusable capture-slot buffer — drop-in for [regex::CaptureLocations].
Obtain via Regex::capture_locations, refill with Regex::captures_read (or
captures_read_at). Spans are read with get.
The buffer is not tied to a text lifetime, so it can be reused across many subjects without
allocating a Captures (or a group vector) per match.
Implementations§
Trait Implementations§
Source§impl Clone for CaptureLocations
impl Clone for CaptureLocations
Source§fn clone(&self) -> CaptureLocations
fn clone(&self) -> CaptureLocations
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CaptureLocations
impl RefUnwindSafe for CaptureLocations
impl Send for CaptureLocations
impl Sync for CaptureLocations
impl Unpin for CaptureLocations
impl UnsafeUnpin for CaptureLocations
impl UnwindSafe for CaptureLocations
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