pub enum LineContextSource<'a> {
PostImage(&'a str),
HunksOnly,
}Expand description
What the attribute-region classifier reads to classify added lines.
Variants§
PostImage(&'a str)
The file as the patch leaves it, so a multi-line -spec, -type,
or -record opened above the hunk still classifies its lines.
HunksOnly
The hunk lines alone, for a patch with no tree to read.
Trait Implementations§
Source§impl<'a> Clone for LineContextSource<'a>
impl<'a> Clone for LineContextSource<'a>
impl<'a> Copy for LineContextSource<'a>
Auto Trait Implementations§
impl<'a> Forget for LineContextSource<'a>
impl<'a> Freeze for LineContextSource<'a>
impl<'a> Move for LineContextSource<'a>
impl<'a> RefUnwindSafe for LineContextSource<'a>
impl<'a> Send for LineContextSource<'a>
impl<'a> Sync for LineContextSource<'a>
impl<'a> Unpin for LineContextSource<'a>
impl<'a> UnsafeUnpin for LineContextSource<'a>
impl<'a> UnwindSafe for LineContextSource<'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