Struct tor_consdiff::DiffResult
source · pub struct DiffResult<'a> { /* private fields */ }
Expand description
The result of applying one or more diff commands to an input string.
It refers to lines from the diff and the input by reference, to avoid copying.
Implementations§
source§impl<'a> DiffResult<'a>
impl<'a> DiffResult<'a>
sourcepub fn check_digest(&self) -> Result<(), Error>
pub fn check_digest(&self) -> Result<(), Error>
See whether the output of this diff matches the target digest.
If not, return an error.
Trait Implementations§
source§impl<'a> Clone for DiffResult<'a>
impl<'a> Clone for DiffResult<'a>
source§fn clone(&self) -> DiffResult<'a>
fn clone(&self) -> DiffResult<'a>
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 more