logo
pub trait RegexpType {
Show 20 methods fn box_clone(&self) -> Box<dyn RegexpType>; fn debug(&self) -> String; fn source(&self) -> &Source; fn config(&self) -> &Config; fn encoding(&self) -> &Encoding; fn inspect(&self) -> Vec<u8>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator
; fn string(&self) -> &[u8]Notable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]; fn captures(
        &self,
        haystack: &[u8]
    ) -> Result<Option<Vec<NilableString>>, Error>; fn capture_indexes_for_name(
        &self,
        name: &[u8]
    ) -> Result<Option<Vec<usize>>, Error>; fn captures_len(&self, haystack: Option<&[u8]>) -> Result<usize, Error>; fn capture0<'a>(
        &self,
        haystack: &'a [u8]
    ) -> Result<Option<&'a [u8]>, Error>; fn case_match(
        &self,
        interp: &mut Artichoke,
        haystack: &[u8]
    ) -> Result<bool, Error>; fn is_match(&self, haystack: &[u8], pos: Option<i64>) -> Result<bool, Error>; fn match_(
        &self,
        interp: &mut Artichoke,
        haystack: &[u8],
        pos: Option<i64>,
        block: Option<Block>
    ) -> Result<Value, Error>; fn match_operator(
        &self,
        interp: &mut Artichoke,
        haystack: &[u8]
    ) -> Result<Option<usize>, Error>; fn named_captures(&self) -> Result<NameToCaptureLocations, Error>; fn named_captures_for_haystack(
        &self,
        haystack: &[u8]
    ) -> Result<Option<HashMap<Vec<u8>, NilableString>>, Error>; fn names(&self) -> Vec<Vec<u8>>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator
; fn pos(
        &self,
        haystack: &[u8],
        at: usize
    ) -> Result<Option<(usize, usize)>, Error>; fn scan(
        &self,
        interp: &mut Artichoke,
        haystack: &[u8],
        block: Option<Block>
    ) -> Result<Scan, Error>;
}

Required Methods

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Implementors