pub enum LineOrigin {
Context,
Addition,
Deletion,
}Expand description
Where a diff line comes from — addition/deletion carry which side’s
line number applies (0010 §1: typed origins, never +-sniffing).
Variants§
Trait Implementations§
Source§impl Clone for LineOrigin
impl Clone for LineOrigin
Source§fn clone(&self) -> LineOrigin
fn clone(&self) -> LineOrigin
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 Copy for LineOrigin
Source§impl Debug for LineOrigin
impl Debug for LineOrigin
impl Eq for LineOrigin
Source§impl PartialEq for LineOrigin
impl PartialEq for LineOrigin
impl StructuralPartialEq for LineOrigin
Auto Trait Implementations§
impl Freeze for LineOrigin
impl RefUnwindSafe for LineOrigin
impl Send for LineOrigin
impl Sync for LineOrigin
impl Unpin for LineOrigin
impl UnsafeUnpin for LineOrigin
impl UnwindSafe for LineOrigin
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