[][src]Struct rustomaton::regex::Regex

pub struct Regex<V: Eq + Hash + Display + Copy + Clone + Debug> { /* fields omitted */ }

Represents a regex.

Implementations

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> Regex<V>[src]

pub fn simplify(self) -> Regex<V>[src]

Simplify the regex.

pub fn contains(&self, other: &Regex<V>) -> bool[src]

A contains B if and only if for each word w, if B accepts w then A accepts w.

impl Regex<char>[src]

pub fn parse_with_alphabet(
    alphabet: HashSet<char>,
    regex: &str
) -> Result<Regex<char>, String>
[src]

Returns the Regex struct corresponding to the given regex.

Trait Implementations

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> Add<Regex<V>> for Regex<V>[src]

type Output = Self

The resulting type after applying the + operator.

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> Buildable<V> for Regex<V>[src]

impl<V: Clone + Eq + Hash + Display + Copy + Debug> Clone for Regex<V>[src]

impl<V: Debug + Eq + Hash + Display + Copy + Clone> Debug for Regex<V>[src]

impl FromStr for Regex<char>[src]

Returns the Regex struct corresponding to the given regex, the alphabet is composed of the letter used in the regexp (without '+', '*', '?', '.', '(', ')', '|', '𝜀').

type Err = String

The associated error which can be returned from parsing.

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> Mul<Regex<V>> for Regex<V>[src]

type Output = Self

The resulting type after applying the * operator.

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> PartialEq<Automaton<V>> for Regex<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> PartialEq<DFA<V>> for Regex<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> PartialEq<NFA<V>> for Regex<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> PartialEq<Regex<V>> for Automaton<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> PartialEq<Regex<V>> for DFA<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> PartialEq<Regex<V>> for NFA<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> PartialEq<Regex<V>> for Regex<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> PartialOrd<Regex<V>> for Regex<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> ToDfa<V> for Regex<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> ToNfa<V> for Regex<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug> ToRegex<V> for Regex<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> ToString for Regex<V>[src]

Auto Trait Implementations

impl<V> RefUnwindSafe for Regex<V> where
    V: RefUnwindSafe

impl<V> Send for Regex<V> where
    V: Send

impl<V> Sync for Regex<V> where
    V: Sync

impl<V> Unpin for Regex<V> where
    V: Unpin

impl<V> UnwindSafe for Regex<V> where
    V: RefUnwindSafe + UnwindSafe

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> ToString for T where
    T: Display + ?Sized
[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.