pub enum Resolution {
Resolved(TypePath),
NotInPool,
Ambiguous(Vec<TypePath>),
}Expand description
Outcome of resolving a type reference against the pool.
Variants§
Resolved(TypePath)
Resolved to exactly one pool key.
NotInPool
The reference points outside the pool — a primitive, an external crate, or an otherwise unresolvable path. No edge / not a root.
Ambiguous(Vec<TypePath>)
A bare reference with no disambiguating use matched more than one
pool key by terminal segment. The caller decides what to do: a closure
edge ignores it (no mislink), a long-tail root errors (the consuming
crate must qualify or rename).
Trait Implementations§
Source§impl Clone for Resolution
impl Clone for Resolution
Source§fn clone(&self) -> Resolution
fn clone(&self) -> Resolution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Resolution
impl Debug for Resolution
impl Eq for Resolution
Source§impl PartialEq for Resolution
impl PartialEq for Resolution
impl StructuralPartialEq for Resolution
Auto Trait Implementations§
impl Freeze for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnsafeUnpin for Resolution
impl UnwindSafe for Resolution
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