#[repr(C)]pub struct rmatch_offset {
pub beg: c_long,
pub end: c_long,
}Expand description
Represents the region of a capture group. This is basically for caching
purpose. re_registers have similar concepts (beg and end) but they are
in ptrdiff_t*. In order for us to implement MatchData#offset that info
has to be converted to offset integers. This is the struct to hold such
things.
@internal
§But why on earth it has to be visible from extension libraries?
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3
Fields§
§beg: c_long§end: c_longTrait Implementations§
Source§impl Clone for rmatch_offset
impl Clone for rmatch_offset
Source§fn clone(&self) -> rmatch_offset
fn clone(&self) -> rmatch_offset
Returns a duplicate 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 moreSource§impl Debug for rmatch_offset
impl Debug for rmatch_offset
Source§impl PartialEq for rmatch_offset
impl PartialEq for rmatch_offset
impl Copy for rmatch_offset
impl Eq for rmatch_offset
impl StructuralPartialEq for rmatch_offset
Auto Trait Implementations§
impl Freeze for rmatch_offset
impl RefUnwindSafe for rmatch_offset
impl Send for rmatch_offset
impl Sync for rmatch_offset
impl Unpin for rmatch_offset
impl UnwindSafe for rmatch_offset
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