[][src]Struct gitignored::Pattern

pub struct Pattern {
    pub string: String,
    // some fields omitted
}

Represents a glob pattern and meta information about it.

Fields

string: String

Implementations

impl Pattern[src]

pub fn new(glob: &str) -> Self[src]

Creates a new Pattern that can be passed to ignores_path. Example:

let ptn = Pattern::new("**/dist/*.js");

Auto Trait Implementations

impl RefUnwindSafe for Pattern

impl Send for Pattern

impl Sync for Pattern

impl Unpin for Pattern

impl UnwindSafe for Pattern

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, 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.