pub enum HoleReason {
UnresolvedReference {
target: FQName,
},
DeletedDuringRefactor {
tx_id: String,
},
TypeMismatch {
expected: String,
found: String,
},
}Expand description
Reason why a value is incomplete/broken (V4 only)
The three reasons are the ones definitions-0014, 0016 and 0026 pin. Draft is the other
Incompleteness kind rather than a reason: a draft is deliberately unfinished and names no
reason at all, so a reader refuses { "Draft": {} } where a reason belongs.
Variants§
UnresolvedReference
Reference couldn’t be resolved
DeletedDuringRefactor
Value was removed during refactoring
TypeMismatch
Type checking failed
Trait Implementations§
Source§impl Clone for HoleReason
impl Clone for HoleReason
Source§impl Debug for HoleReason
impl Debug for HoleReason
Source§impl<'de> Deserialize<'de> for HoleReason
impl<'de> Deserialize<'de> for HoleReason
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HoleReason
impl PartialEq for HoleReason
Source§impl Serialize for HoleReason
impl Serialize for HoleReason
impl StructuralPartialEq for HoleReason
Auto Trait Implementations§
impl Freeze for HoleReason
impl RefUnwindSafe for HoleReason
impl Send for HoleReason
impl Sync for HoleReason
impl Unpin for HoleReason
impl UnsafeUnpin for HoleReason
impl UnwindSafe for HoleReason
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