pub struct RegApproxMatch<'a, T: ?Sized> { /* private fields */ }Expand description
This struct is returned by regaexec.
The match results from this function are very complex. See the TRE documentation for details on how this all works and corresponding fields, and what they mean.
This structure should never be instantiated outside the library.
Implementations§
Source§impl<'a, T: ?Sized> RegApproxMatch<'a, T>
impl<'a, T: ?Sized> RegApproxMatch<'a, T>
Sourcepub const fn get_orig_data(&self) -> &'a T
pub const fn get_orig_data(&self) -> &'a T
Gets an immutable reference to the underlying data
Sourcepub fn get_matches(&self) -> &[Option<&'a T>]
pub fn get_matches(&self) -> &[Option<&'a T>]
Gets the matches returned by this, as references to the data
Sourcepub fn into_matches(self) -> Vec<Option<&'a T>>
pub fn into_matches(self) -> Vec<Option<&'a T>>
Consumes this result and returns its matches.
Trait Implementations§
Source§impl<'a, T: Clone + ?Sized> Clone for RegApproxMatch<'a, T>
impl<'a, T: Clone + ?Sized> Clone for RegApproxMatch<'a, T>
Source§fn clone(&self) -> RegApproxMatch<'a, T>
fn clone(&self) -> RegApproxMatch<'a, T>
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 moreimpl<'a, T: Eq + ?Sized> Eq for RegApproxMatch<'a, T>
impl<'a, T: PartialEq + ?Sized> StructuralPartialEq for RegApproxMatch<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for RegApproxMatch<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for RegApproxMatch<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for RegApproxMatch<'a, T>
impl<'a, T> Sync for RegApproxMatch<'a, T>
impl<'a, T> Unpin for RegApproxMatch<'a, T>where
T: ?Sized,
impl<'a, T> UnsafeUnpin for RegApproxMatch<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for RegApproxMatch<'a, T>where
T: RefUnwindSafe + ?Sized,
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