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