pub enum InstanceTier {
Declared {
index: usize,
},
Fallback {
index: usize,
},
}Expand description
Which TIER an instance was found in, and where inside it.
Lean tells you that an instance was synthesised; set_option trace.Meta.synthInstance tells
you a search log you then have to read backwards. This names the winner’s coordinates directly,
which is what a translator actually needs when two sources disagree about which instance a goal
picked up.
Variants§
Declared
An explicitly declared instance — Context::instances()[index].
Fallback
A library/derived FALLBACK instance — Context::fallback_instances()[index].
Trait Implementations§
Source§impl Clone for InstanceTier
impl Clone for InstanceTier
Source§fn clone(&self) -> InstanceTier
fn clone(&self) -> InstanceTier
Returns a duplicate of the value. Read more
1.0.0 · 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 InstanceTier
impl Debug for InstanceTier
Source§impl PartialEq for InstanceTier
impl PartialEq for InstanceTier
impl Eq for InstanceTier
impl StructuralPartialEq for InstanceTier
Auto Trait Implementations§
impl Freeze for InstanceTier
impl RefUnwindSafe for InstanceTier
impl Send for InstanceTier
impl Sync for InstanceTier
impl Unpin for InstanceTier
impl UnsafeUnpin for InstanceTier
impl UnwindSafe for InstanceTier
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