pub struct TypeError {
pub expected: &'static str,
pub found: String,
}Expand description
Why a value could not be read as the type its setting declares.
Fields§
§expected: &'static strThe type as a human reads it: “an integer”.
found: StringWhat arrived instead, quoted the way it was written.
Trait Implementations§
impl StructuralPartialEq for TypeError
Auto Trait Implementations§
impl Freeze for TypeError
impl RefUnwindSafe for TypeError
impl Send for TypeError
impl Sync for TypeError
impl Unpin for TypeError
impl UnsafeUnpin for TypeError
impl UnwindSafe for TypeError
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