pub struct TaggedError { /* private fields */ }Expand description
An EncodingError which also displays all the error stack.
This is useful for debugging, because the entire structure tree is displayed.
Implementations§
Source§impl TaggedError
impl TaggedError
Sourcepub const fn from_stack(err: EncodingError, stack: Stack) -> Self
pub const fn from_stack(err: EncodingError, stack: Stack) -> Self
Constructs a new TaggedError from an encoding error and an
error metadata stack.
If the debug feature is enabled, you can obtain an instance of [Stack]
from an [Encoder] right after an error occurred (encoder.stack).
Trait Implementations§
Source§impl Debug for TaggedError
impl Debug for TaggedError
Auto Trait Implementations§
impl Freeze for TaggedError
impl RefUnwindSafe for TaggedError
impl Send for TaggedError
impl Sync for TaggedError
impl Unpin for TaggedError
impl UnwindSafe for TaggedError
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