[][src]Trait rec::Element

pub trait Element: Add<Rec> + BitOr<Rec> {
    fn into_rec(self) -> Rec;

    fn group(self) -> Rec
    where
        Self: Sized
, { ... } }

Signifies elements that can be converted into a Rec.

Required methods

fn into_rec(self) -> Rec

Converts self into a Rec.

Loading content...

Provided methods

fn group(self) -> Rec where
    Self: Sized

Converts self into a Rec that is grouped.

Loading content...

Implementations on Foreign Types

impl<'_> Element for &'_ str[src]

fn into_rec(self) -> Rec[src]

use rec::Element;

assert_eq!(".+*?|".into_rec(), String::from(r"\.\+\*\?\|").into_rec());

fn group(self) -> Rec where
    Self: Sized
[src]

impl Element for String[src]

fn group(self) -> Rec where
    Self: Sized
[src]

Loading content...

Implementors

impl Element for Rec[src]

fn group(self) -> Rec where
    Self: Sized
[src]

impl<'_> Element for Ch<'_>[src]

fn group(self) -> Rec where
    Self: Sized
[src]

Loading content...