pub struct DiffResult {
pub is_identical: bool,
pub source_only: Vec<String>,
pub target_only: Vec<String>,
pub different: Vec<(String, String, String)>,
}Expand description
文件比较结果
Fields§
§is_identical: bool是否相同
source_only: Vec<String>仅在源文件中存在的标签
target_only: Vec<String>仅在目标文件中存在的标签
different: Vec<(String, String, String)>值不同的标签
Implementations§
Source§impl DiffResult
impl DiffResult
Sourcepub fn add_source_only(&mut self, tag: impl Into<String>)
pub fn add_source_only(&mut self, tag: impl Into<String>)
添加仅在源文件存在的标签
Sourcepub fn add_target_only(&mut self, tag: impl Into<String>)
pub fn add_target_only(&mut self, tag: impl Into<String>)
添加仅在目标文件存在的标签
Trait Implementations§
Source§impl Clone for DiffResult
impl Clone for DiffResult
Source§fn clone(&self) -> DiffResult
fn clone(&self) -> DiffResult
Returns a duplicate 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 Debug for DiffResult
impl Debug for DiffResult
Auto Trait Implementations§
impl Freeze for DiffResult
impl RefUnwindSafe for DiffResult
impl Send for DiffResult
impl Sync for DiffResult
impl Unpin for DiffResult
impl UnsafeUnpin for DiffResult
impl UnwindSafe for DiffResult
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