pub struct Compare { /* private fields */ }Implementations§
Source§impl Compare
impl Compare
pub fn note_saved(&mut self, file: &File, path: &Path)
pub fn probe(&mut self, head: &dyn Head, path: &Path)
pub fn probed(&self) -> bool
pub fn head_note(&self) -> Option<String>
pub fn has_head(&self) -> bool
pub fn base(&self) -> Result<&str, String>
pub fn computed(&self) -> usize
pub fn refresh(&mut self, text: &str) -> Option<&Diff>
pub fn hunk(&self, index: usize) -> Option<Hunk>
pub fn base_of(&self) -> Option<&str>
pub fn paint( &mut self, ui: &mut Ui, theme: &Theme, text: &str, height: f32, ) -> Option<usize>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Compare
impl RefUnwindSafe for Compare
impl Send for Compare
impl Sync for Compare
impl Unpin for Compare
impl UnsafeUnpin for Compare
impl UnwindSafe for Compare
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> 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