[][src]Struct artichoke_backend::extn::core::regexp::Regexp

pub struct Regexp(_);

Implementations

impl Regexp[src]

pub fn new(
    source: Source,
    config: Config,
    encoding: Encoding
) -> Result<Self, Error>
[src]

#[must_use]pub fn lazy(pattern: Vec<u8>) -> Self[src]

pub fn initialize(
    interp: &mut Artichoke,
    mut pattern: Value,
    options: Option<Options>,
    encoding: Option<Encoding>
) -> Result<Self, Error>
[src]

pub fn escape(pattern: &[u8]) -> Result<String, Error>[src]

pub fn union<T>(interp: &mut Artichoke, patterns: T) -> Result<Self, Error> where
    T: IntoIterator<Item = Value>, 
[src]

#[must_use]pub fn inner(&self) -> &dyn RegexpType[src]

pub fn case_compare(
    &self,
    interp: &mut Artichoke,
    mut other: Value
) -> Result<bool, Error>
[src]

#[must_use]pub fn eql(&self, interp: &mut Artichoke, mut other: Value) -> bool[src]

#[must_use]pub fn hash(&self) -> u64[src]

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

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

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

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

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

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

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

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

#[must_use]pub fn options(&self) -> Int[src]

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

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

Trait Implementations

impl Clone for Regexp[src]

impl Debug for Regexp[src]

impl Eq for Regexp[src]

impl From<Box<dyn RegexpType + 'static, Global>> for Regexp[src]

impl Hash for Regexp[src]

impl HeapAllocatedData for Regexp[src]

impl PartialEq<Regexp> for Regexp[src]

Auto Trait Implementations

impl !RefUnwindSafe for Regexp[src]

impl !Send for Regexp[src]

impl !Sync for Regexp[src]

impl Unpin for Regexp[src]

impl !UnwindSafe for Regexp[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]