pub enum ExactWriteError {
NoSource,
MissingSpan,
SpanOutOfRange,
}Expand description
Why a byte-exact reserialization could not be produced.
Every variant means the same thing to a caller: the exact bytes are not recoverable, so no output is returned rather than a normalized guess.
Variants§
NoSource
The document does not retain its parse input.
MissingSpan
A retained construct has no recorded source span.
SpanOutOfRange
A recorded span does not address a character boundary of the source.
Trait Implementations§
Source§impl Clone for ExactWriteError
impl Clone for ExactWriteError
Source§fn clone(&self) -> ExactWriteError
fn clone(&self) -> ExactWriteError
Returns a copy 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 ExactWriteError
impl Debug for ExactWriteError
Source§impl Display for ExactWriteError
impl Display for ExactWriteError
Source§impl Error for ExactWriteError
impl Error for ExactWriteError
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()
Source§impl PartialEq for ExactWriteError
impl PartialEq for ExactWriteError
impl Copy for ExactWriteError
impl Eq for ExactWriteError
impl StructuralPartialEq for ExactWriteError
Auto Trait Implementations§
impl Freeze for ExactWriteError
impl RefUnwindSafe for ExactWriteError
impl Send for ExactWriteError
impl Sync for ExactWriteError
impl Unpin for ExactWriteError
impl UnwindSafe for ExactWriteError
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