pub struct UnitVerdicts<'a> { /* private fields */ }Expand description
The per-unit verdicts of one diff, with the work every unit shares done
once: the package references of both sides, the package names of each
unit and the canonical key of each change. See unit_verdict for what
concerns a unit.
Implementations§
Source§impl<'a> UnitVerdicts<'a>
impl<'a> UnitVerdicts<'a>
Sourcepub fn new(
report: &'a DiffReport,
old: &'a [Package],
new: &'a [Package],
) -> Self
pub fn new( report: &'a DiffReport, old: &'a [Package], new: &'a [Package], ) -> Self
Prepares the verdicts of report, the diff of old against new.
Sourcepub fn from_refs(
report: &'a DiffReport,
old: &[&'a Package],
new: &[&'a Package],
) -> Self
pub fn from_refs( report: &'a DiffReport, old: &[&'a Package], new: &[&'a Package], ) -> Self
UnitVerdicts::new over borrowed packages, for a caller that holds
the packages by reference and would otherwise clone them.
Auto Trait Implementations§
impl<'a> Forget for UnitVerdicts<'a>
impl<'a> Freeze for UnitVerdicts<'a>
impl<'a> RefUnwindSafe for UnitVerdicts<'a>
impl<'a> Send for UnitVerdicts<'a>
impl<'a> Sync for UnitVerdicts<'a>
impl<'a> Unpin for UnitVerdicts<'a>
impl<'a> UnsafeUnpin for UnitVerdicts<'a>
impl<'a> UnwindSafe for UnitVerdicts<'a>
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