pub enum BreakCause {
NotFound {
what: PendingRef,
},
Ambiguous {
what: PendingRef,
candidates: Vec<NodeId>,
},
KindMismatch {
expected: &'static str,
found: &'static str,
},
IllegalCycle {
through: NodeId,
},
}Expand description
Why resolution failed.
A reference must never sit in Pending after a failed attempt — the
failure is recorded so it can be reported. Spec §2.
Variants§
NotFound
Nothing in the model carries that name.
Fields
§
what: PendingRefThe name that was looked up.
Ambiguous
More than one node carries that name.
Fields
§
what: PendingRefThe name that was looked up.
KindMismatch
The target exists but is the wrong kind of node.
IllegalCycle
Resolving would close a cycle the specification forbids, for example a struct inheriting from itself.
Trait Implementations§
Source§impl Clone for BreakCause
impl Clone for BreakCause
Source§impl Debug for BreakCause
impl Debug for BreakCause
impl Eq for BreakCause
Source§impl PartialEq for BreakCause
impl PartialEq for BreakCause
impl StructuralPartialEq for BreakCause
Auto Trait Implementations§
impl Freeze for BreakCause
impl RefUnwindSafe for BreakCause
impl Send for BreakCause
impl Sync for BreakCause
impl Unpin for BreakCause
impl UnsafeUnpin for BreakCause
impl UnwindSafe for BreakCause
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