Struct tre_regex::RegApproxMatch
source · 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§
Auto Trait Implementations§
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>where Data: Unpin, Res: Unpin,
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