pub struct Delta {
pub address: Address,
pub kind: DeltaKind,
pub fidelity: Fidelity,
pub before: Option<String>,
pub after: Option<String>,
pub lines: Vec<Line>,
pub package: Option<PackageId>,
pub summary: Option<String>,
}Expand description
One addressed difference inside a Diff, carried at its own rung.
before and after hold content ids, not content: the identity of the
bytes on each side, absent when the side does not exist. lines carries
the text-rung comparison and is empty at the binary rung. package
names the format package whose projection or differ produced the delta —
outputs carry the package version (ADR-0003) — and is None at rungs no
package produced: the binary floor and plain-text raises. summary is a
rich delta’s difference in the format’s own terms — the affected text
and the property change — and None below the rich rung.
Fields§
§address: AddressWhere the delta lands, in the format’s own terms.
kind: DeltaKindWhat kind of change the delta records.
fidelity: FidelityThe rung the delta is carried at.
before: Option<String>The content id of the before side; None when the side does not exist.
after: Option<String>The content id of the after side; None when the side does not exist.
lines: Vec<Line>The text-rung line comparison; empty at the binary rung.
package: Option<PackageId>The package whose projection or differ produced the delta; None
at rungs no package produced.
summary: Option<String>A rich delta’s difference in the format’s own terms; None below
the rich rung.
Implementations§
Trait Implementations§
impl Eq for Delta
impl StructuralPartialEq for Delta
Auto Trait Implementations§
impl Freeze for Delta
impl RefUnwindSafe for Delta
impl Send for Delta
impl Sync for Delta
impl Unpin for Delta
impl UnsafeUnpin for Delta
impl UnwindSafe for Delta
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more