pub enum TypeUnificationError {
TypeMismatchError {
error: TypeMismatchError,
},
UnresolvedTypesError {
error: UnResolvedTypesError,
},
}Variants§
TypeMismatchError
Fields
§
error: TypeMismatchErrorUnresolvedTypesError
Fields
§
error: UnResolvedTypesErrorImplementations§
Source§impl TypeUnificationError
impl TypeUnificationError
pub fn unresolved_types_error( source_span: SourceSpan, additional_messages: Vec<String>, ) -> TypeUnificationError
pub fn type_mismatch_error( source_span: SourceSpan, expected_type: InferredType, actual_type: InferredType, additional_error_detail: Vec<String>, ) -> TypeUnificationError
Auto Trait Implementations§
impl Freeze for TypeUnificationError
impl RefUnwindSafe for TypeUnificationError
impl Send for TypeUnificationError
impl Sync for TypeUnificationError
impl Unpin for TypeUnificationError
impl UnsafeUnpin for TypeUnificationError
impl UnwindSafe for TypeUnificationError
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