pub struct SliceReaderError(/* private fields */);Expand description
An error raised while decoding a slice.
Trait Implementations§
Source§impl Debug for SliceReaderError
impl Debug for SliceReaderError
Source§impl Display for SliceReaderError
impl Display for SliceReaderError
Source§impl Error for SliceReaderError
impl Error for SliceReaderError
Source§fn message<T>(message: T) -> Selfwhere
T: Display,
fn message<T>(message: T) -> Selfwhere
T: Display,
Collect an error from something that can be displayed. Read more
Source§fn uninhabitable(type_name: &'static str) -> Self
fn uninhabitable(type_name: &'static str) -> Self
Trying to decode an uninhabitable type.
Source§fn expected_tag<T>(type_name: &'static str, tag: T) -> Selfwhere
T: Debug,
fn expected_tag<T>(type_name: &'static str, tag: T) -> Selfwhere
T: Debug,
The value for the given tag could not be collected.
Source§fn invalid_field_tag<T>(type_name: &'static str, tag: T) -> Selfwhere
T: Debug,
fn invalid_field_tag<T>(type_name: &'static str, tag: T) -> Selfwhere
T: Debug,
Encountered an unsupported number tag.
Source§fn invalid_variant_tag<T>(type_name: &'static str, tag: T) -> Selfwhere
T: Debug,
fn invalid_variant_tag<T>(type_name: &'static str, tag: T) -> Selfwhere
T: Debug,
Indicate that a variant wasn’t supported by tag.
Source§impl Error for SliceReaderError
Available on crate feature std only.
impl Error for SliceReaderError
Available on crate feature
std only.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 SliceReaderError
impl RefUnwindSafe for SliceReaderError
impl Send for SliceReaderError
impl Sync for SliceReaderError
impl Unpin for SliceReaderError
impl UnsafeUnpin for SliceReaderError
impl UnwindSafe for SliceReaderError
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