pub struct Rules(/* private fields */);Expand description
The rules of an .isoloomignore, in order.
Implementations§
Source§impl Rules
impl Rules
Sourcepub fn parse(text: &str) -> Rules
pub fn parse(text: &str) -> Rules
The rules of a file’s text (every line is a rule or nothing: none is an error).
Sourcepub fn ignored(&self, path: &str) -> bool
pub fn ignored(&self, path: &str) -> bool
Whether the rules leave a path out (relative to the project, with /; a folder’s path
ends with /): the last rule matching it, or a folder it is in, decides.
Sourcepub fn brings_back(&self) -> bool
pub fn brings_back(&self) -> bool
Whether a ! pattern may bring back something in an ignored folder.
Trait Implementations§
impl Eq for Rules
impl StructuralPartialEq for Rules
Auto Trait Implementations§
impl Freeze for Rules
impl RefUnwindSafe for Rules
impl Send for Rules
impl Sync for Rules
impl Unpin for Rules
impl UnsafeUnpin for Rules
impl UnwindSafe for Rules
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.