#[non_exhaustive]pub enum RonCodecError {
Parse {
source: SpannedError,
line: usize,
column: usize,
},
Validation(ValidationError),
Serialize(Error),
}Expand description
RON parse, serialize, or post-parse validation failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Parse
RON text could not be parsed into a WeaveDef.
Fields
§
source: SpannedErrorUnderlying ron parse error.
Validation(ValidationError)
Parsed definition failed Weave validation.
Serialize(Error)
WeaveDef could not be serialized to RON.
Trait Implementations§
Source§impl Debug for RonCodecError
impl Debug for RonCodecError
Source§impl Display for RonCodecError
impl Display for RonCodecError
Source§impl Error for RonCodecError
impl Error for RonCodecError
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()
Source§impl From<ValidationError> for RonCodecError
impl From<ValidationError> for RonCodecError
Source§fn from(value: ValidationError) -> Self
fn from(value: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RonCodecError
impl RefUnwindSafe for RonCodecError
impl Send for RonCodecError
impl Sync for RonCodecError
impl Unpin for RonCodecError
impl UnsafeUnpin for RonCodecError
impl UnwindSafe for RonCodecError
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