Trait bird_machine::Machine[][src]

pub trait Machine<'t>: Sized {
    type CaptureIterator: Iterator<Item = Self>;
    type FindIterator: Iterator<Item = Match<'t>>;
    type SplitIterator: Iterator<Item = &'t str>;
    type SplitNIterator: Iterator<Item = &'t str>;

    const ORIGINAL_REGEX: &'static str;

    fn captures(text: &'t str) -> Option<Self>;
fn captures_iter(text: &'t str) -> Self::CaptureIterator;
fn find(text: &'t str) -> Option<Match<'t>>;
fn find_at(text: &'t str, start: usize) -> Option<Match<'t>>;
fn find_iter(text: &'t str) -> Self::FindIterator;
fn is_match(text: &'t str) -> bool;
fn is_match_at(text: &'t str, start: usize) -> bool;
fn replace(text: &'t str, rep: impl Replacer<'t, Self>) -> Cow<'t, str>;
fn replace_all(text: &'t str, rep: impl Replacer<'t, Self>) -> Cow<'t, str>;
fn replacen(
        text: &'t str,
        limit: usize,
        rep: impl Replacer<'t, Self>
    ) -> Cow<'t, str>;
fn split(text: &'t str) -> Self::SplitIterator;
fn splitn(text: &'t str, limit: usize) -> Self::SplitNIterator; }

Associated Types

type CaptureIterator: Iterator<Item = Self>[src]

type FindIterator: Iterator<Item = Match<'t>>[src]

type SplitIterator: Iterator<Item = &'t str>[src]

type SplitNIterator: Iterator<Item = &'t str>[src]

Loading content...

Associated Constants

const ORIGINAL_REGEX: &'static str[src]

Loading content...

Required methods

fn captures(text: &'t str) -> Option<Self>[src]

fn captures_iter(text: &'t str) -> Self::CaptureIterator[src]

fn find(text: &'t str) -> Option<Match<'t>>[src]

fn find_at(text: &'t str, start: usize) -> Option<Match<'t>>[src]

fn find_iter(text: &'t str) -> Self::FindIterator[src]

fn is_match(text: &'t str) -> bool[src]

fn is_match_at(text: &'t str, start: usize) -> bool[src]

fn replace(text: &'t str, rep: impl Replacer<'t, Self>) -> Cow<'t, str>[src]

fn replace_all(text: &'t str, rep: impl Replacer<'t, Self>) -> Cow<'t, str>[src]

fn replacen(
    text: &'t str,
    limit: usize,
    rep: impl Replacer<'t, Self>
) -> Cow<'t, str>
[src]

fn split(text: &'t str) -> Self::SplitIterator[src]

fn splitn(text: &'t str, limit: usize) -> Self::SplitNIterator[src]

Loading content...

Implementors

Loading content...