Struct Glob

pub struct Glob { /* private fields */ }

Glob represents a single glob in a gitignore file.

This is used to report information about the highest precedent glob that matched in one or more gitignore files.

Implementations

impl Glob

fn from(&self) -> Option<&Path>

Returns the file path that defined this glob.

fn original(&self) -> &str

The original glob as it was defined in a gitignore file.

fn actual(&self) -> &str

The actual glob that was compiled to respect gitignore semantics.

fn is_whitelist(&self) -> bool

Whether this was a whitelisted glob or not.

fn is_only_dir(&self) -> bool

Whether this glob must match a directory or not.

Trait Implementations

impl Clone for Glob

fn clone(&self) -> Self

impl Debug for Glob

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl Freeze for Glob

impl RefUnwindSafe for Glob

impl Send for Glob

impl Sync for Glob

impl Unpin for Glob

impl UnsafeUnpin for Glob

impl UnwindSafe for Glob

Blanket Implementations

impl<T> Any for Glob where T: 'static + ?Sized,

impl<T> Borrow<T> for Glob where T: ?Sized,

impl<T> BorrowMut<T> for Glob where T: ?Sized,

impl<T> CloneToUninit for Glob where T: Clone,

impl<T> From<T> for Glob

impl<T> Pointable for Glob

impl<T> ToOwned for Glob where T: Clone,

impl<T, U> Into<U> for Glob where U: From<T>,

impl<T, U> TryFrom<U> for Glob where U: Into<T>,

impl<T, U> TryInto<U> for Glob where U: TryFrom<T>,