Trait wax::Pattern

source ·
pub trait Pattern<'t>: TryInto<Checked<Self::Tokens>, Error = Self::Error> {
    type Tokens: TokenTree<'t>;
    type Error: Into<BuildError>;
}
Expand description

A representation of a glob expression.

This trait is implemented by types that can be converted into a Program, such as str slices. These types may or may not have been compiled into a Program.

Required Associated Types§

source

type Tokens: TokenTree<'t>

source

type Error: Into<BuildError>

Implementations on Foreign Types§

source§

impl<'t> Pattern<'t> for &'t str

§

type Tokens = Tokenized<'t, (usize, usize)>

§

type Error = BuildError

Implementors§

source§

impl<'t> Pattern<'t> for Any<'t>

§

type Tokens = Token<'t, ()>

§

type Error = Infallible

source§

impl<'t> Pattern<'t> for Glob<'t>

§

type Tokens = Tokenized<'t, (usize, usize)>

§

type Error = Infallible