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 Forget for SurfaceDiff
impl Freeze for SurfaceDiff
impl Move for SurfaceDiff
impl RefUnwindSafe for SurfaceDiff
impl Send for SurfaceDiffwhere
RawVecInner: Send,
impl Sync for SurfaceDiffwhere
RawVecInner: Sync,
impl Unpin for SurfaceDiff
impl UnsafeUnpin for SurfaceDiffwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(String, bool)>: UnsafeUnpin,
impl UnwindSafe for SurfaceDiffwhere
RawVecInner: UnwindSafe,
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