pub struct Report {
pub old: Side,
pub new: Side,
pub removed: Vec<Removed>,
pub renamed: Vec<Renamed>,
pub added: Vec<Added>,
pub unused: Vec<Unused>,
}Expand description
The result of crate::diff. Every list is sorted.
Fields§
§old: Side§new: Side§removed: Vec<Removed>IDs of the old world that the new one lacks and that no rename pairs, by kind and ID.
renamed: Vec<Renamed>Removed IDs paired with an ID of the new world, by kind, old ID and new ID.
added: Vec<Added>IDs of the new world that the old one lacks and that no rename pairs, by kind and ID.
unused: Vec<Unused>Allowlist entries that did not apply, by kind and old ID.
Implementations§
Source§impl Report
impl Report
Sourcepub fn breaking(&self) -> bool
pub fn breaking(&self) -> bool
Whether an ID was removed or renamed without the allowlist accepting it.
Sourcepub fn not_allowed(&self) -> usize
pub fn not_allowed(&self) -> usize
The removed and renamed IDs the allowlist does not accept.
Trait Implementations§
impl Eq for Report
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Forget for Report
impl Freeze for Report
impl Move for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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