pub struct IgnoreFile {
pub path: PathBuf,
pub applies_in: Option<PathBuf>,
pub applies_to: Option<ProjectType>,
}Expand description
An ignore file.
This records both the path to the ignore file and some basic metadata about it: which project
type it applies to if any, and which subtree it applies in if any (None = global ignore file).
Fields§
§path: PathBufThe path to the ignore file.
applies_in: Option<PathBuf>The path to the subtree the ignore file applies to, or None for global ignores.
applies_to: Option<ProjectType>Which project type the ignore file applies to, or was found through.
Trait Implementations§
Source§impl Clone for IgnoreFile
impl Clone for IgnoreFile
Source§fn clone(&self) -> IgnoreFile
fn clone(&self) -> IgnoreFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IgnoreFile
impl Debug for IgnoreFile
impl Eq for IgnoreFile
Source§impl Hash for IgnoreFile
impl Hash for IgnoreFile
Source§impl PartialEq for IgnoreFile
impl PartialEq for IgnoreFile
Source§fn eq(&self, other: &IgnoreFile) -> bool
fn eq(&self, other: &IgnoreFile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IgnoreFile
Auto Trait Implementations§
impl Freeze for IgnoreFile
impl RefUnwindSafe for IgnoreFile
impl Send for IgnoreFile
impl Sync for IgnoreFile
impl Unpin for IgnoreFile
impl UnsafeUnpin for IgnoreFile
impl UnwindSafe for IgnoreFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more