pub struct OperationChange { /* private fields */ }Expand description
Deterministic before/after evidence for one logical filesystem operation.
Implementations§
Source§impl OperationChange
impl OperationChange
pub const fn kind(&self) -> OperationKind
pub fn source_path(&self) -> Option<&str>
pub fn destination_path(&self) -> Option<&str>
pub const fn old_sha256(&self) -> Option<Sha256Hash>
pub const fn new_sha256(&self) -> Option<Sha256Hash>
pub const fn bytes_before(&self) -> u64
pub const fn bytes_after(&self) -> u64
pub const fn edits_applied(&self) -> usize
Trait Implementations§
Source§impl Clone for OperationChange
impl Clone for OperationChange
Source§fn clone(&self) -> OperationChange
fn clone(&self) -> OperationChange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OperationChange
impl Debug for OperationChange
impl Eq for OperationChange
Source§impl PartialEq for OperationChange
impl PartialEq for OperationChange
impl StructuralPartialEq for OperationChange
Auto Trait Implementations§
impl Freeze for OperationChange
impl RefUnwindSafe for OperationChange
impl Send for OperationChange
impl Sync for OperationChange
impl Unpin for OperationChange
impl UnsafeUnpin for OperationChange
impl UnwindSafe for OperationChange
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