pub enum Fidelity {
Binary,
Text,
Rich,
}Expand description
The rung a delta is carried at: the format-independent fidelity ladder.
The floor is Fidelity::Binary (changed-or-not on opaque bytes); the
ladder raises a delta to Fidelity::Text (a line diff over projected
text) and, once a package ships a differ, Fidelity::Rich (deltas in
the format’s own terms).
Variants§
Binary
The floor: changed-or-not over opaque bytes. Every document diffs at least here.
Text
A line diff over projected or plain text.
Rich
A delta in the format’s own terms, produced by a package differ.
Trait Implementations§
impl Copy for Fidelity
impl Eq for Fidelity
impl StructuralPartialEq for Fidelity
Auto Trait Implementations§
impl Freeze for Fidelity
impl RefUnwindSafe for Fidelity
impl Send for Fidelity
impl Sync for Fidelity
impl Unpin for Fidelity
impl UnsafeUnpin for Fidelity
impl UnwindSafe for Fidelity
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