pub struct IgnoreRules { /* private fields */ }Expand description
Every pattern in force, in the order that decides a tie.
Implementations§
Source§impl IgnoreRules
impl IgnoreRules
Sourcepub fn new<'a, I: IntoIterator<Item = &'a str>>(
ignore_text: Option<&'a str>,
excludes: I,
) -> Self
pub fn new<'a, I: IntoIterator<Item = &'a str>>( ignore_text: Option<&'a str>, excludes: I, ) -> Self
Build the rules from an ignore file’s text and the --exclude globs.
The file’s lines come first and the globs after, which is what makes
--exclude able to narrow what the file widened.
Trait Implementations§
Source§impl Clone for IgnoreRules
impl Clone for IgnoreRules
Source§fn clone(&self) -> IgnoreRules
fn clone(&self) -> IgnoreRules
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 IgnoreRules
impl Debug for IgnoreRules
Source§impl Default for IgnoreRules
impl Default for IgnoreRules
Source§fn default() -> IgnoreRules
fn default() -> IgnoreRules
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IgnoreRules
impl RefUnwindSafe for IgnoreRules
impl Send for IgnoreRules
impl Sync for IgnoreRules
impl Unpin for IgnoreRules
impl UnsafeUnpin for IgnoreRules
impl UnwindSafe for IgnoreRules
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