[go: up one dir, main page]

Struct fst::Regex [] [src]

pub struct Regex {
    // some fields omitted
}

Methods

impl Regex
[src]

fn new(re: &str) -> Result<Regex>

fn with_size_limit(size: usize, re: &str) -> Result<Regex>

Trait Implementations

impl Automaton for Regex
[src]

type State = Option<usize>

The type of the state used in the automaton.

fn start(&self) -> Option<usize>

Returns a single start state for this automaton. Read more

fn is_match(&self, state: &Option<usize>) -> bool

Returns true if and only if state is a match state.

fn can_match(&self, state: &Option<usize>) -> bool

Returns true if and only if state can lead to a match in zero or more steps. Read more

fn accept(&self, state: &Option<usize>, byte: u8) -> Option<usize>

Return the next state given state and an input.

impl Debug for Regex
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.