pub enum ExprSerializeError {
IoError(String),
FormatError(String),
UnknownVariant(String),
VersionMismatch {
expected: u32,
got: u32,
},
InvalidMagic,
TruncatedInput,
Utf8Error(String),
}Expand description
Error type for serialization operations.
Variants§
IoError(String)
I/O related error
FormatError(String)
Format/parsing error
UnknownVariant(String)
Unknown variant tag encountered
VersionMismatch
Binary format version mismatch
InvalidMagic
Invalid magic bytes in binary header
TruncatedInput
Input was truncated (unexpected end)
Utf8Error(String)
UTF-8 decoding error
Trait Implementations§
Source§impl Clone for ExprSerializeError
impl Clone for ExprSerializeError
Source§fn clone(&self) -> ExprSerializeError
fn clone(&self) -> ExprSerializeError
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 moreSource§impl Debug for ExprSerializeError
impl Debug for ExprSerializeError
Source§impl Display for ExprSerializeError
impl Display for ExprSerializeError
Source§impl Error for ExprSerializeError
impl Error for ExprSerializeError
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()
Auto Trait Implementations§
impl Freeze for ExprSerializeError
impl RefUnwindSafe for ExprSerializeError
impl Send for ExprSerializeError
impl Sync for ExprSerializeError
impl Unpin for ExprSerializeError
impl UnsafeUnpin for ExprSerializeError
impl UnwindSafe for ExprSerializeError
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