pub struct TypeMismatchError {
pub source_span: SourceSpan,
pub expected_type: ExpectedType,
pub actual_type: ActualType,
pub field_path: Path,
pub additional_error_detail: Vec<String>,
}Fields§
§source_span: SourceSpan§expected_type: ExpectedType§actual_type: ActualType§field_path: Path§additional_error_detail: Vec<String>Implementations§
Source§impl TypeMismatchError
impl TypeMismatchError
pub fn updated_expected_type( &self, expected_type: &WitType, ) -> TypeMismatchError
pub fn at_field(&self, field_name: String) -> TypeMismatchError
Trait Implementations§
Source§impl Clone for TypeMismatchError
impl Clone for TypeMismatchError
Source§fn clone(&self) -> TypeMismatchError
fn clone(&self) -> TypeMismatchError
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 moreAuto Trait Implementations§
impl Freeze for TypeMismatchError
impl RefUnwindSafe for TypeMismatchError
impl Send for TypeMismatchError
impl Sync for TypeMismatchError
impl Unpin for TypeMismatchError
impl UnsafeUnpin for TypeMismatchError
impl UnwindSafe for TypeMismatchError
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