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) -> &strThe original glob as it was defined in a gitignore file.
fn actual(&self) -> &strThe actual glob that was compiled to respect gitignore semantics.
fn is_whitelist(&self) -> boolWhether this was a whitelisted glob or not.
fn is_only_dir(&self) -> boolWhether 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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Glob
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Glob
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Glob
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Glob
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Pointable for Glob
const ALIGN: usize = _;type Init = T;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
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Glob
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Glob
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Glob
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>