pub struct Pattern {
pub pattern: String,
pub is_negation: bool,
pub line_number: usize,
}Expand description
A single parsed pattern from an ignore file.
Created by parse(). Contains the raw glob pattern, whether it is a
negation (re-inclusion), and the line number where it appeared.
Fields§
§pattern: StringThe raw glob pattern string (without leading ! for negations).
is_negation: booltrue if this pattern was prefixed with ! (re-includes files).
line_number: usizeThe 1-based line number where this pattern appeared in the file.
Trait Implementations§
impl Eq for Pattern
impl StructuralPartialEq for Pattern
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnwindSafe for Pattern
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