Enum ezno_checker::context::AssignmentError
source · pub enum AssignmentError {
Constant(SpanWithSource),
VariableNotFound {
variable: String,
assignment_position: SpanWithSource,
},
DoesNotMeetConstraint {
variable_type: TypeStringRepresentation,
variable_site: SpanWithSource,
value_type: TypeStringRepresentation,
value_site: SpanWithSource,
},
PropertyConstraint {
property_constraint: TypeStringRepresentation,
value_type: TypeStringRepresentation,
assignment_position: SpanWithSource,
},
}Variants§
Constant(SpanWithSource)
Non writable, could have position info
VariableNotFound
DoesNotMeetConstraint
Fields
§
variable_type: TypeStringRepresentation§
variable_site: SpanWithSource§
value_type: TypeStringRepresentation§
value_site: SpanWithSourceCovers both assignment and declaration
PropertyConstraint
Fields
§
property_constraint: TypeStringRepresentation§
value_type: TypeStringRepresentation§
assignment_position: SpanWithSourceAuto Trait Implementations§
impl RefUnwindSafe for AssignmentError
impl Send for AssignmentError
impl Sync for AssignmentError
impl Unpin for AssignmentError
impl UnwindSafe for AssignmentError
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