Struct sre_engine::engine::State[][src]

pub struct State<'a> {
    pub string: StrDrive<'a>,
    pub start: usize,
    pub end: usize,
    pub marks: Vec<Option<usize>>,
    pub lastindex: isize,
    pub string_position: usize,
    pub has_matched: Option<bool>,
    pub match_all: bool,
    // some fields omitted
}

Fields

string: StrDrive<'a>start: usizeend: usizemarks: Vec<Option<usize>>lastindex: isizestring_position: usizehas_matched: Option<bool>match_all: bool

Implementations

impl<'a> State<'a>[src]

pub fn new(
    string: StrDrive<'a>,
    start: usize,
    end: usize,
    flags: SreFlag,
    pattern_codes: &'a [u32]
) -> Self
[src]

pub fn reset(&mut self)[src]

pub fn pymatch(self) -> Self[src]

pub fn search(self) -> Self[src]

Trait Implementations

impl<'a> Debug for State<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for State<'a>

impl<'a> Send for State<'a>

impl<'a> Sync for State<'a>

impl<'a> Unpin for State<'a>

impl<'a> UnwindSafe for State<'a>

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, 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.