pub enum ShapeComparison {
Same,
Drift {
source_signature: String,
target_signature: String,
},
NoSpec,
UnknownType,
}Expand description
Outcome of comparing one function’s -spec return shape between
two spec tables. The guards are check_return_shapes’ from the
snapshot axis: present on both sides, both parse to a known
SpecType, shapes disagree.
Variants§
Same
Both sides have a spec and the shapes agree.
Drift
Both sides have a spec and the shapes disagree.
NoSpec
One or both sides declare no -spec for the key.
UnknownType
Both sides have a spec but at least one parses to
SpecType::Unknown.
Trait Implementations§
Source§impl Debug for ShapeComparison
impl Debug for ShapeComparison
impl Eq for ShapeComparison
Source§impl PartialEq for ShapeComparison
impl PartialEq for ShapeComparison
impl StructuralPartialEq for ShapeComparison
Auto Trait Implementations§
impl Freeze for ShapeComparison
impl RefUnwindSafe for ShapeComparison
impl Send for ShapeComparison
impl Sync for ShapeComparison
impl Unpin for ShapeComparison
impl UnsafeUnpin for ShapeComparison
impl UnwindSafe for ShapeComparison
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