#[repr(C)]pub struct RMatch {
pub basic: RBasic,
pub str_: VALUE,
pub rmatch: *mut rmatch,
pub regexp: VALUE,
}Expand description
Regular expression execution context. When a regular expression “matches”
to a string, it generates capture groups etc. This struct holds that info.
Visible from Ruby as an instance of MatchData.
§@note There is no way for extension libraries to manually generate this struct except by actually exercising the match operation of a regular expression.
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3
Fields§
§basic: RBasic§str_: VALUE§The target string that the match was made against.
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3
rmatch: *mut rmatch§regexp: VALUETrait Implementations§
impl Copy for RMatch
impl Eq for RMatch
impl StructuralPartialEq for RMatch
Auto Trait Implementations§
impl Freeze for RMatch
impl RefUnwindSafe for RMatch
impl !Send for RMatch
impl !Sync for RMatch
impl Unpin for RMatch
impl UnwindSafe for RMatch
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)