pub struct SolvedInstance {
pub head: Type,
pub context: Vec<Predicate>,
pub bindings: Vec<(Name, Solved)>,
pub rejected: bool,
}Expand description
What the typer has to say about one instance declaration: the type it is for, what
it needs, and an answer for each binding of its body.
Fields§
§head: TypeThe type the instance is for, over variables of its own: Instance::head.
context: Vec<Predicate>What the instance needs of the head’s variables: Instance::context.
bindings: Vec<(Name, Solved)>An answer for every binding of the instance, by the member it defines, in the order the instance holds them.
rejected: boolWhether the instance’s own check failed: Instance::rejected.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SolvedInstance
impl RefUnwindSafe for SolvedInstance
impl Send for SolvedInstance
impl Sync for SolvedInstance
impl Unpin for SolvedInstance
impl UnsafeUnpin for SolvedInstance
impl UnwindSafe for SolvedInstance
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