[][src]Trait artichoke_backend::extn::core::regexp::backend::RegexpType

pub trait RegexpType {
    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>;
fn string(&self) -> &[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<Int>) -> Result<bool, Error>;
fn match_(
        &self,
        interp: &mut Artichoke,
        haystack: &[u8],
        pos: Option<Int>,
        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>>;
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

fn box_clone(&self) -> Box<dyn RegexpType>[src]

fn debug(&self) -> String[src]

fn source(&self) -> &Source[src]

fn config(&self) -> &Config[src]

fn encoding(&self) -> &Encoding[src]

fn inspect(&self) -> Vec<u8>[src]

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

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

fn capture_indexes_for_name(
    &self,
    name: &[u8]
) -> Result<Option<Vec<usize>>, Error>
[src]

fn captures_len(&self, haystack: Option<&[u8]>) -> Result<usize, Error>[src]

fn capture0<'a>(&self, haystack: &'a [u8]) -> Result<Option<&'a [u8]>, Error>[src]

fn case_match(
    &self,
    interp: &mut Artichoke,
    haystack: &[u8]
) -> Result<bool, Error>
[src]

fn is_match(&self, haystack: &[u8], pos: Option<Int>) -> Result<bool, Error>[src]

fn match_(
    &self,
    interp: &mut Artichoke,
    haystack: &[u8],
    pos: Option<Int>,
    block: Option<Block>
) -> Result<Value, Error>
[src]

fn match_operator(
    &self,
    interp: &mut Artichoke,
    haystack: &[u8]
) -> Result<Option<usize>, Error>
[src]

fn named_captures(&self) -> Result<NameToCaptureLocations, Error>[src]

fn named_captures_for_haystack(
    &self,
    haystack: &[u8]
) -> Result<Option<HashMap<Vec<u8>, NilableString>>, Error>
[src]

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

fn pos(
    &self,
    haystack: &[u8],
    at: usize
) -> Result<Option<(usize, usize)>, Error>
[src]

fn scan(
    &self,
    interp: &mut Artichoke,
    haystack: &[u8],
    block: Option<Block>
) -> Result<Scan, Error>
[src]

Loading content...

Trait Implementations

impl Debug for &dyn RegexpType[src]

impl Debug for &mut dyn RegexpType[src]

impl Eq for &dyn RegexpType[src]

impl Eq for &mut dyn RegexpType[src]

impl Hash for &dyn RegexpType[src]

impl Hash for &mut dyn RegexpType[src]

impl PartialEq<&'_ (dyn RegexpType + '_)> for &dyn RegexpType[src]

impl PartialEq<&'_ mut (dyn RegexpType + '_)> for &mut dyn RegexpType[src]

Implementors

impl RegexpType for Lazy[src]

impl RegexpType for Onig[src]

impl RegexpType for Utf8[src]

Loading content...