pub struct BlockGroupDiff {
pub id: HashId,
pub source_block_group: Option<BlockGroup>,
pub target_block_group: Option<BlockGroup>,
pub graph: DiffGenGraph,
}Fields§
§id: HashId§source_block_group: Option<BlockGroup>§target_block_group: Option<BlockGroup>§graph: DiffGenGraphImplementations§
Source§impl BlockGroupDiff
impl BlockGroupDiff
Sourcepub const fn change_kind(&self) -> Option<BlockGroupChangeKind>
pub const fn change_kind(&self) -> Option<BlockGroupChangeKind>
Returns the block group’s change classification for this comparison.
None indicates an invalid diff with no block group at either endpoint.
The classification is derived rather than stored so it cannot disagree
with source_block_group and target_block_group. CLI and TUI views use
the result to label the complete block-group diff.
Trait Implementations§
Source§impl Clone for BlockGroupDiff
impl Clone for BlockGroupDiff
Auto Trait Implementations§
impl Freeze for BlockGroupDiff
impl RefUnwindSafe for BlockGroupDiff
impl Send for BlockGroupDiff
impl Sync for BlockGroupDiff
impl Unpin for BlockGroupDiff
impl UnsafeUnpin for BlockGroupDiff
impl UnwindSafe for BlockGroupDiff
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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