pub struct RegApproxMatch<Data, Res> { /* private fields */ }
Expand description
This struct is returned by regaexec
and friends.
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<Data, Res> RegApproxMatch<Data, Res>
impl<Data, Res> RegApproxMatch<Data, Res>
Sourcepub const fn get_orig_data(&self) -> &Data
pub const fn get_orig_data(&self) -> &Data
Gets an immutable reference to the underlying data
Sourcepub const fn get_matches(&self) -> &Vec<Option<Res>>
pub const fn get_matches(&self) -> &Vec<Option<Res>>
Gets the matches returned by this, as references to the data
Sourcepub const fn get_regamatch(&self) -> ®amatch_t
pub const fn get_regamatch(&self) -> ®amatch_t
Gets a reference to the underlying regamatch_t
object.
Trait Implementations§
Source§impl<Data: Clone, Res: Clone> Clone for RegApproxMatch<Data, Res>
impl<Data: Clone, Res: Clone> Clone for RegApproxMatch<Data, Res>
Source§fn clone(&self) -> RegApproxMatch<Data, Res>
fn clone(&self) -> RegApproxMatch<Data, Res>
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 moreAuto Trait Implementations§
impl<Data, Res> Freeze for RegApproxMatch<Data, Res>where
Data: Freeze,
impl<Data, Res> RefUnwindSafe for RegApproxMatch<Data, Res>where
Data: RefUnwindSafe,
Res: RefUnwindSafe,
impl<Data, Res> !Send for RegApproxMatch<Data, Res>
impl<Data, Res> !Sync for RegApproxMatch<Data, Res>
impl<Data, Res> Unpin for RegApproxMatch<Data, Res>
impl<Data, Res> UnwindSafe for RegApproxMatch<Data, Res>where
Data: UnwindSafe,
Res: UnwindSafe,
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