pub struct SurfaceDiff {
pub added: Vec<String>,
pub removed: Vec<String>,
pub changed: Vec<(String, bool)>,
}Expand description
Public-API delta between two Surface snapshots, by item path.
Fields§
§added: Vec<String>Item paths present only in the new surface.
removed: Vec<String>Item paths present only in the old surface.
changed: Vec<(String, bool)>(path, signature_changed) — false means body-only change. An enum’s
variants and a struct’s or union’s pub fields count as signature,
so one added, removed, or retyped is never “body”.
Implementations§
Trait Implementations§
Source§impl Debug for SurfaceDiff
impl Debug for SurfaceDiff
Auto Trait Implementations§
impl Freeze for SurfaceDiff
impl RefUnwindSafe for SurfaceDiff
impl Send for SurfaceDiff
impl Sync for SurfaceDiff
impl Unpin for SurfaceDiff
impl UnsafeUnpin for SurfaceDiff
impl UnwindSafe for SurfaceDiff
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