pub struct Regexp(_);
Implementations
sourceimpl Regexp
impl Regexp
pub fn new(
source: Source,
config: Config,
encoding: Encoding
) -> Result<Self, Error>
pub fn initialize(
interp: &mut Artichoke,
pattern: Value,
options: Option<Options>,
encoding: Option<Encoding>
) -> Result<Self, Error>
pub fn escape(pattern: &[u8]) -> Result<String, Error>
pub fn union<T>(interp: &mut Artichoke, patterns: T) -> Result<Self, Error> where
T: IntoIterator<Item = Value>,
pub fn inner(&self) -> &dyn RegexpType
pub fn case_compare(
&self,
interp: &mut Artichoke,
other: Value
) -> Result<bool, Error>
pub fn eql(&self, interp: &mut Artichoke, other: Value) -> bool
pub fn hash(&self) -> u64
pub fn inspect(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn is_casefold(&self) -> bool
pub fn is_fixed_encoding(&self) -> bool
pub fn is_match(
&self,
pattern: Option<&[u8]>,
pos: Option<i64>
) -> Result<bool, Error>
pub fn match_(
&self,
interp: &mut Artichoke,
pattern: Option<&[u8]>,
pos: Option<i64>,
block: Option<Block>
) -> Result<Value, Error>
pub fn match_operator(
&self,
interp: &mut Artichoke,
pattern: Option<&[u8]>
) -> Result<Option<usize>, Error>
pub fn named_captures(&self) -> Result<NameToCaptureLocations, Error>
pub fn names(&self) -> Vec<Vec<u8>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn options(&self) -> i64
pub fn source(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
pub fn string(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
Trait Implementations
sourceimpl From<Box<dyn RegexpType + 'static, Global>> for Regexp
impl From<Box<dyn RegexpType + 'static, Global>> for Regexp
sourcefn from(regexp: Box<dyn RegexpType>) -> Self
fn from(regexp: Box<dyn RegexpType>) -> Self
Converts to this type from the input type.
impl Eq for Regexp
Auto Trait Implementations
impl !RefUnwindSafe for Regexp
impl !Send for Regexp
impl !Sync for Regexp
impl Unpin for Regexp
impl !UnwindSafe for Regexp
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