pub struct SurfaceDiff {
pub removed_types: Vec<String>,
pub changed_types: Vec<(TypeSig, TypeSig)>,
pub removed_fns: Vec<String>,
pub changed_fns: Vec<(FnSig, FnSig)>,
pub removed_traits: Vec<String>,
pub removed_modules: Vec<String>,
pub is_breaking: bool,
}Expand description
The result of comparing two API surfaces.
Fields§
§removed_types: Vec<String>Names of types that were present in the baseline but are now missing.
changed_types: Vec<(TypeSig, TypeSig)>Types whose signature changed between baseline and current.
removed_fns: Vec<String>Names of functions that were removed.
changed_fns: Vec<(FnSig, FnSig)>Functions whose signature changed.
removed_traits: Vec<String>Names of traits that were removed.
removed_modules: Vec<String>Names of modules that were removed.
is_breaking: booltrue if any breaking change was detected.
Trait Implementations§
Source§impl Debug for SurfaceDiff
impl Debug for SurfaceDiff
Source§impl Default for SurfaceDiff
impl Default for SurfaceDiff
Source§fn default() -> SurfaceDiff
fn default() -> SurfaceDiff
Returns the “default value” for a type. Read more
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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more