pub struct Broken {
pub name: Name,
pub span: NodeSpan,
pub tpe: Option<Type>,
pub context: Vec<Constraint>,
pub annotation_span: NodeSpan,
}Expand description
A value declaration canonicalization rejected, recorded in Module::broken.
Fields§
§name: Name§span: NodeSpanWhere the declaration was written, annotation and body together.
tpe: Option<Type>The type of the declaration’s annotation, when it has one and both that type and
its context canonicalized; None when either failed.
context: Vec<Constraint>The constraints written in front of that annotation’s =>, each resolved, in
the order written; empty when tpe is None. Beside the type and not inside
it, as on Value::TypedValue.
annotation_span: NodeSpanWhere that annotation was written; NodeSpan::none() when tpe is None.
Trait Implementations§
impl StructuralPartialEq for Broken
Auto Trait Implementations§
impl Freeze for Broken
impl RefUnwindSafe for Broken
impl Send for Broken
impl Sync for Broken
impl Unpin for Broken
impl UnsafeUnpin for Broken
impl UnwindSafe for Broken
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