pub struct IgnoreList { /* private fields */ }Expand description
A compiled set of ignore patterns.
Implementations§
Source§impl IgnoreList
impl IgnoreList
Sourcepub fn load(repo: &Repository) -> Result<IgnoreList>
pub fn load(repo: &Repository) -> Result<IgnoreList>
Load the ignore list from the repository root, if a .cadvmignore exists.
Sourcepub fn parse(text: &str) -> IgnoreList
pub fn parse(text: &str) -> IgnoreList
Parse ignore patterns from raw text.
Sourcepub fn is_ignored(&self, rel: &Path) -> bool
pub fn is_ignored(&self, rel: &Path) -> bool
Whether a repo-relative path should be ignored.
Trait Implementations§
Source§impl Clone for IgnoreList
impl Clone for IgnoreList
Source§fn clone(&self) -> IgnoreList
fn clone(&self) -> IgnoreList
Returns a duplicate of the value. Read more
1.0.0 · 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 IgnoreList
impl Debug for IgnoreList
Source§impl Default for IgnoreList
impl Default for IgnoreList
Source§fn default() -> IgnoreList
fn default() -> IgnoreList
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IgnoreList
impl RefUnwindSafe for IgnoreList
impl Send for IgnoreList
impl Sync for IgnoreList
impl Unpin for IgnoreList
impl UnsafeUnpin for IgnoreList
impl UnwindSafe for IgnoreList
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