pub struct MetaError {
pub message: String,
}Expand description
An error raised by a __serialize or __tostring metamethod.
Carries the message the metamethod would raise with. The serializer ignores the error and falls back to serializing the table directly, but the message is available to callers that inspect it.
Fields§
§message: StringThe error message.
Implementations§
Trait Implementations§
impl Eq for MetaError
Source§impl Error for MetaError
impl Error for MetaError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for MetaError
Auto Trait Implementations§
impl Freeze for MetaError
impl RefUnwindSafe for MetaError
impl Send for MetaError
impl Sync for MetaError
impl Unpin for MetaError
impl UnsafeUnpin for MetaError
impl UnwindSafe for MetaError
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