pub struct MultiDiffLine {
pub line_number: usize,
pub line_type: String,
pub content: String,
pub agreement: usize,
pub total: usize,
pub variants: Vec<MultiDiffVariant>,
}Expand description
One line entry in a multi-way diff result.
Fields§
§line_number: usize1-based position in the padded line grid.
line_type: String“consensus” when all versions agree, “divergent” otherwise.
content: StringThe most common variant’s content (or the unanimous content for consensus lines).
agreement: usizeHow many versions have content at this position.
total: usizeTotal number of versions (including the base).
variants: Vec<MultiDiffVariant>All per-version contents when line_type is “divergent”; empty for “consensus”.
Trait Implementations§
Source§impl Clone for MultiDiffLine
impl Clone for MultiDiffLine
Source§fn clone(&self) -> MultiDiffLine
fn clone(&self) -> MultiDiffLine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MultiDiffLine
impl Debug for MultiDiffLine
Source§impl<'de> Deserialize<'de> for MultiDiffLine
impl<'de> Deserialize<'de> for MultiDiffLine
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MultiDiffLine
impl RefUnwindSafe for MultiDiffLine
impl Send for MultiDiffLine
impl Sync for MultiDiffLine
impl Unpin for MultiDiffLine
impl UnsafeUnpin for MultiDiffLine
impl UnwindSafe for MultiDiffLine
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