Trait Builder

Source
pub trait Builder:
    Eq
    + Hash
    + Sized {
    type Symbol: Alphabet;

    // Required methods
    fn empty_set() -> Regex<Self>;
    fn empty_string() -> Regex<Self>;
    fn symbol(value: Self::Symbol) -> Regex<Self>;
    fn closure(inner: Regex<Self>) -> Regex<Self>;
    fn concat(left: Regex<Self>, right: Regex<Self>) -> Regex<Self>;
    fn or(left: Regex<Self>, right: Regex<Self>) -> Regex<Self>;
    fn and(left: Regex<Self>, right: Regex<Self>) -> Regex<Self>;
    fn complement(inner: Regex<Self>) -> Regex<Self>;
}
Expand description

Constructor methods for regular expressions.

Required Associated Types§

Required Methods§

Source

fn empty_set() -> Regex<Self>

Source

fn empty_string() -> Regex<Self>

Source

fn symbol(value: Self::Symbol) -> Regex<Self>

Source

fn closure(inner: Regex<Self>) -> Regex<Self>

Source

fn concat(left: Regex<Self>, right: Regex<Self>) -> Regex<Self>

Source

fn or(left: Regex<Self>, right: Regex<Self>) -> Regex<Self>

Source

fn and(left: Regex<Self>, right: Regex<Self>) -> Regex<Self>

Source

fn complement(inner: Regex<Self>) -> Regex<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§