[][src]Trait rec::Element

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

    fn group(self) -> Rec
    where
        Self: Sized
, { ... }
fn unionable_value(&self) -> Option<String> { ... } }

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.

fn unionable_value(&self) -> Option<String>

Returns the representation of self as part of a [Char::Union], if it exists.

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]

fn unionable_value(&self) -> Option<String>[src]

Loading content...

Implementors

impl Element for Rec[src]

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

fn unionable_value(&self) -> Option<String>[src]

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

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

Loading content...