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) -> &strThe original glob as it was defined in a gitignore file.
fn actual(self: &Self) -> &strThe actual glob that was compiled to respect gitignore semantics.
fn is_whitelist(self: &Self) -> boolWhether this was a whitelisted glob or not.
fn is_only_dir(self: &Self) -> boolWhether 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) -> TReturns the argument unchanged.
impl<T> Pointable for Glob
unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> ToOwned for Glob
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for Glob
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses 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>