pub enum SerializeError {
InvalidDocument(Vec<Diagnostic>),
UnsupportedNode(&'static str),
}Expand description
Why serialization failed.
Variants§
InvalidDocument(Vec<Diagnostic>)
The AST failed validation; carries the validation diagnostics.
UnsupportedNode(&'static str)
A node kind that the serializer does not support was encountered.
Trait Implementations§
Source§impl Clone for SerializeError
impl Clone for SerializeError
Source§fn clone(&self) -> SerializeError
fn clone(&self) -> SerializeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SerializeError
impl Debug for SerializeError
impl Eq for SerializeError
Source§impl PartialEq for SerializeError
impl PartialEq for SerializeError
Source§fn eq(&self, other: &SerializeError) -> bool
fn eq(&self, other: &SerializeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SerializeError
Auto Trait Implementations§
impl Freeze for SerializeError
impl RefUnwindSafe for SerializeError
impl Send for SerializeError
impl Sync for SerializeError
impl Unpin for SerializeError
impl UnsafeUnpin for SerializeError
impl UnwindSafe for SerializeError
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