pub struct ThreeDirInput {
pub left: PathBuf,
pub right: PathBuf,
pub edit: PathBuf,
}
Expand description
Either three dirs to compare or three files to compare
Fields§
§left: PathBuf
§right: PathBuf
§edit: PathBuf
Trait Implementations§
Source§impl Clone for ThreeDirInput
impl Clone for ThreeDirInput
Source§fn clone(&self) -> ThreeDirInput
fn clone(&self) -> ThreeDirInput
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl DataInterface for ThreeDirInput
impl DataInterface for ThreeDirInput
Source§fn scan(&self) -> Result<EntriesToCompare, DataReadError>
fn scan(&self) -> Result<EntriesToCompare, DataReadError>
Return the content of either the original files to merge or the
last-saved version. Read more
Source§fn save_unchecked(
&mut self,
result: IndexMap<String, String>,
) -> Result<(), DataSaveError>
fn save_unchecked( &mut self, result: IndexMap<String, String>, ) -> Result<(), DataSaveError>
Do not use this method directly, as it does not check whether the
requested paths are safe to save to.
Source§fn get_valid_entries(&mut self) -> Result<HashSet<PathBuf>, DataReadError>
fn get_valid_entries(&mut self) -> Result<HashSet<PathBuf>, DataReadError>
Get a list of all the files we were originally asked to merge. Read more
Source§impl Debug for ThreeDirInput
impl Debug for ThreeDirInput
Source§impl<'de> Deserialize<'de> for ThreeDirInput
impl<'de> Deserialize<'de> for ThreeDirInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ThreeDirInput
impl PartialEq for ThreeDirInput
Source§impl Serialize for ThreeDirInput
impl Serialize for ThreeDirInput
impl Eq for ThreeDirInput
impl StructuralPartialEq for ThreeDirInput
Auto Trait Implementations§
impl Freeze for ThreeDirInput
impl RefUnwindSafe for ThreeDirInput
impl Send for ThreeDirInput
impl Sync for ThreeDirInput
impl Unpin for ThreeDirInput
impl UnwindSafe for ThreeDirInput
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<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
Compare self to
key
and return true
if they are equal.