[][src]Struct artichoke_backend::extn::core::matchdata::MatchData

pub struct MatchData { /* fields omitted */ }

Implementations

impl MatchData[src]

#[must_use]pub fn new<R>(haystack: Vec<u8>, regexp: Regexp, bounds: R) -> Self where
    R: RangeBounds<usize>, 
[src]

pub fn set_region<R>(&mut self, bounds: R) where
    R: RangeBounds<usize>, 
[src]

#[must_use]pub fn matched_region(&self) -> &[u8][src]

pub fn begin(&self, capture: Capture<'_>) -> Result<Option<usize>, Error>[src]

pub fn capture_at(&self, at: CaptureAt<'_>) -> Result<CaptureMatch, Error>[src]

pub fn captures(&self) -> Result<Option<Vec<Option<Vec<u8>>>>, Error>[src]

pub fn end(&self, capture: Capture<'_>) -> Result<Option<usize>, Error>[src]

#[must_use]pub fn is_empty(&self) -> bool[src]

pub fn len(&self) -> Result<usize, Error>[src]

pub fn named_captures(
    &self
) -> Result<Option<HashMap<Vec<u8>, NilableString>>, Error>
[src]

#[must_use]pub fn names(&self) -> Vec<Vec<u8>>[src]

pub fn offset(&self, capture: Capture<'_>) -> Result<Option<[usize; 2]>, Error>[src]

#[must_use]pub fn pre(&self) -> &[u8][src]

#[must_use]pub fn post(&self) -> &[u8][src]

#[must_use]pub fn regexp(&self) -> &Regexp[src]

pub fn regexp_mut(&mut self) -> &mut Regexp[src]

#[must_use]pub fn string(&self) -> &[u8][src]

pub fn to_a(&self) -> Result<Option<Vec<NilableString>>, Error>[src]

pub fn to_s(&self) -> Result<Option<&[u8]>, Error>[src]

Trait Implementations

impl Clone for MatchData[src]

impl Debug for MatchData[src]

impl Eq for MatchData[src]

impl Hash for MatchData[src]

impl HeapAllocatedData for MatchData[src]

impl PartialEq<MatchData> for MatchData[src]

impl StructuralEq for MatchData[src]

impl StructuralPartialEq for MatchData[src]

Auto Trait Implementations

impl !RefUnwindSafe for MatchData[src]

impl !Send for MatchData[src]

impl !Sync for MatchData[src]

impl Unpin for MatchData[src]

impl !UnwindSafe for MatchData[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]