Struct Glob

struct Glob { ... }

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: &Self) -> Option<&Path>

Returns the file path that defined this glob.

fn original(self: &Self) -> &str

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

fn actual(self: &Self) -> &str

The actual glob that was compiled to respect gitignore semantics.

fn is_whitelist(self: &Self) -> bool

Whether this was a whitelisted glob or not.

fn is_only_dir(self: &Self) -> bool

Whether this glob must match a directory or not.

impl Clone for Glob

fn clone(self: &Self) -> Glob

impl Debug for Glob

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

impl Freeze for Glob

impl RefUnwindSafe for Glob

impl Send for Glob

impl Sync for Glob

impl Unpin for Glob

impl UnwindSafe for Glob

impl<T> Any for Glob

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Glob

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Glob

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Glob

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Glob

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Pointable for Glob

unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

impl<T> ToOwned for Glob

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Glob

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Glob

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Glob

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>