pub enum Lines {
Counted {
added: u32,
removed: u32,
},
Binary,
}Expand description
How much of a file moved.
An enum rather than two numbers, because a binary file has no line
count. Rendering one as +0 −0 would be the interface reporting a
measurement nobody made, and a reader would take it for a file that
was touched and left alone.
Variants§
Trait Implementations§
impl Copy for Lines
Source§impl<'de> Deserialize<'de> for Lines
impl<'de> Deserialize<'de> for Lines
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Lines, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Lines, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Lines
Source§impl Serialize for Lines
impl Serialize for Lines
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Lines
Auto Trait Implementations§
impl Freeze for Lines
impl RefUnwindSafe for Lines
impl Send for Lines
impl Sync for Lines
impl Unpin for Lines
impl UnsafeUnpin for Lines
impl UnwindSafe for Lines
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