pub struct Diff<'a, P, S> {Show 13 fields
current_screen: CurrentScreen,
table: WithBlock<SelectTable>,
repo: &'a Repository<P, S>,
snapshot_left: SnapshotFile,
snapshot_right: SnapshotFile,
path_left: PathBuf,
path_right: PathBuf,
trees: Vec<(DiffTree, DiffNode, usize)>,
tree: DiffTree,
node: DiffNode,
summary_map: SummaryMap,
ignore_metadata: bool,
ignore_identical: bool,
}Fields§
§current_screen: CurrentScreen§table: WithBlock<SelectTable>§repo: &'a Repository<P, S>§snapshot_left: SnapshotFile§snapshot_right: SnapshotFile§path_left: PathBuf§path_right: PathBuf§trees: Vec<(DiffTree, DiffNode, usize)>§tree: DiffTree§node: DiffNode§summary_map: SummaryMap§ignore_metadata: bool§ignore_identical: boolImplementations§
Source§impl<'a, P: ProgressBars, S: IndexedFull> Diff<'a, P, S>
impl<'a, P: ProgressBars, S: IndexedFull> Diff<'a, P, S>
pub fn new( repo: &'a Repository<P, S>, snap_left: SnapshotFile, snap_right: SnapshotFile, path_left: &str, path_right: &str, summary_map: SummaryMap, ) -> Result<Self>
fn node_changed(&self, node: &DiffNode) -> NodeDiff
fn show_node(&self, node: &DiffNode) -> bool
fn ls_row( &self, node: &DiffNode, stat: &mut DiffStatistics, ) -> Vec<Text<'static>>
pub fn update_table(&mut self)
pub fn enter(&mut self) -> Result<()>
pub fn in_root(&self) -> bool
pub fn goback(&mut self)
pub fn toggle_ignore_metadata(&mut self)
pub fn toggle_ignore_identical(&mut self) -> Result<()>
pub fn compute_summary(&mut self) -> Result<()>
pub fn snapshot_details(&self) -> PopUp<WithBlock<SizedTable>>
Trait Implementations§
Source§impl<'a, P: ProgressBars, S: IndexedFull> Draw for Diff<'a, P, S>
impl<'a, P: ProgressBars, S: IndexedFull> Draw for Diff<'a, P, S>
Source§impl<'a, P: ProgressBars, S: IndexedFull> ProcessEvent for Diff<'a, P, S>
impl<'a, P: ProgressBars, S: IndexedFull> ProcessEvent for Diff<'a, P, S>
Auto Trait Implementations§
impl<'a, P, S> Freeze for Diff<'a, P, S>
impl<'a, P, S> !RefUnwindSafe for Diff<'a, P, S>
impl<'a, P, S> Send for Diff<'a, P, S>
impl<'a, P, S> Sync for Diff<'a, P, S>
impl<'a, P, S> Unpin for Diff<'a, P, S>
impl<'a, P, S> !UnwindSafe for Diff<'a, P, S>
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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