pub struct PatternView<'a> {
pub source: &'a str,
pub negated: bool,
pub suppress_diff: bool,
}Expand description
One line of .git-xcrypt, as the .gitattributes renderer sees it.
Fields§
§source: &'a strThe pattern as written, without a leading !.
negated: boolWhether this line takes paths back out.
suppress_diff: boolWhether it declared binary, which also means “no diff driver”.
Trait Implementations§
Source§impl<'a> Clone for PatternView<'a>
impl<'a> Clone for PatternView<'a>
Source§fn clone(&self) -> PatternView<'a>
fn clone(&self) -> PatternView<'a>
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 moreimpl<'a> Copy for PatternView<'a>
Source§impl<'a> Debug for PatternView<'a>
impl<'a> Debug for PatternView<'a>
impl<'a> Eq for PatternView<'a>
Source§impl<'a> PartialEq for PatternView<'a>
impl<'a> PartialEq for PatternView<'a>
impl<'a> StructuralPartialEq for PatternView<'a>
Auto Trait Implementations§
impl<'a> Freeze for PatternView<'a>
impl<'a> RefUnwindSafe for PatternView<'a>
impl<'a> Send for PatternView<'a>
impl<'a> Sync for PatternView<'a>
impl<'a> Unpin for PatternView<'a>
impl<'a> UnsafeUnpin for PatternView<'a>
impl<'a> UnwindSafe for PatternView<'a>
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