pub struct Onig { /* private fields */ }
Implementations
Trait Implementations
sourceimpl RegexpType for Onig
impl RegexpType for Onig
fn box_clone(&self) -> Box<dyn RegexpType>
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 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,
A: Allocator,
fn string(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
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,
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>
Auto Trait Implementations
impl RefUnwindSafe for Onig
impl !Send for Onig
impl !Sync for Onig
impl Unpin for Onig
impl UnwindSafe for Onig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more