[][src]Enum fancy_regex_fork_pb::Expr

pub enum Expr {
    Empty,
    Any {
        newline: bool,
    },
    StartText,
    EndText,
    StartLine,
    EndLine,
    Literal {
        val: String,
        casei: bool,
    },
    Concat(Vec<Expr>),
    Alt(Vec<Expr>),
    Group(Box<Expr>),
    LookAround(Box<Expr>, LookAround),
    Repeat {
        child: Box<Expr>,
        lo: usize,
        hi: usize,
        greedy: bool,
    },
    Delegate {
        inner: String,
        size: usize,
        casei: bool,
    },
    Backref(usize),
    AtomicGroup(Box<Expr>),
}

Variants

EmptyAny

Fields of Any

newline: bool
StartTextEndTextStartLineEndLineLiteral

Fields of Literal

val: Stringcasei: bool
Concat(Vec<Expr>)Alt(Vec<Expr>)Group(Box<Expr>)LookAround(Box<Expr>, LookAround)Repeat

Fields of Repeat

child: Box<Expr>lo: usizehi: usizegreedy: bool
Delegate

Fields of Delegate

inner: Stringsize: usizecasei: bool
Backref(usize)AtomicGroup(Box<Expr>)

Methods

impl Expr[src]

pub fn parse(re: &str) -> Result<(Expr, BitSet)>[src]

pub fn to_str(&self, buf: &mut String, precedence: u8)[src]

Trait Implementations

impl PartialEq<Expr> for Expr[src]

impl Eq for Expr[src]

impl Debug for Expr[src]

Auto Trait Implementations

impl Sync for Expr

impl Send for Expr

impl Unpin for Expr

impl RefUnwindSafe for Expr

impl UnwindSafe for Expr

Blanket Implementations

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]