[][src]Enum pathpatterns::MatchPattern

pub enum MatchPattern {
    Pattern(Pattern),
    Literal(Vec<u8>),
}

A pattern entry. For now this only contains glob patterns, but we may want to add regex patterns or user defined callback functions later on as well.

For regex we'd likely use the POSIX extended REs via regexec(3), since we're targetting command line interfaces and want something command line users are used to.

Variants

Pattern(Pattern)

A glob pattern.

Literal(Vec<u8>)

A literal match.

Implementations

impl MatchPattern[src]

pub fn literal(literal: impl Into<Vec<u8>>) -> Self[src]

Trait Implementations

impl Clone for MatchPattern[src]

impl Debug for MatchPattern[src]

impl From<Pattern> for MatchPattern[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.