pub struct Culprit {
pub source: Option<PathBuf>,
pub line: usize,
pub pattern: String,
pub assignment: String,
}Expand description
Where an attribute value came from, in terms a reader can act on.
A verdict of “git converts your ciphertext” is unactionable without this: the
stack has four levels and one of them, $GIT_DIR/info/attributes, is not
versioned and cannot be seen in a pull request at all.
Fields§
§source: Option<PathBuf>The attributes file the line sits in, when there is one.
line: usizeThe line number within it, as git counts them.
pattern: StringThe pattern that matched.
assignment: StringThe assignment, spelled the way a .gitattributes line spells it.
Trait Implementations§
impl Eq for Culprit
impl StructuralPartialEq for Culprit
Auto Trait Implementations§
impl Freeze for Culprit
impl RefUnwindSafe for Culprit
impl Send for Culprit
impl Sync for Culprit
impl Unpin for Culprit
impl UnsafeUnpin for Culprit
impl UnwindSafe for Culprit
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