Enum bytecheck::EnumCheckError [−][src]
pub enum EnumCheckError<T> { InvalidStruct { variant_name: &'static str, inner: StructCheckError, }, InvalidTuple { variant_name: &'static str, inner: TupleStructCheckError, }, InvalidTag(T), }
Expand description
An error resulting from an invalid enum.
Variants
Expand description
A struct variant was invalid
Show fields
Fields of InvalidStruct
variant_name: &'static str
Expand description
The name of the variant that was invalid
inner: StructCheckError
Expand description
The error that occurred while validating the variant
Expand description
A tuple variant was invalid
Show fields
Fields of InvalidTuple
variant_name: &'static str
Expand description
The name of the variant that was invalid
inner: TupleStructCheckError
Expand description
The error that occurred while validating the variant
Expand description
The enum tag was invalid
Trait Implementations
impl<T: Debug> Debug for EnumCheckError<T>
[src]
impl<T: Debug> Debug for EnumCheckError<T>
[src]impl<T: Display> Display for EnumCheckError<T>
[src]
impl<T: Display> Display for EnumCheckError<T>
[src]impl<T: Debug + Display> Error for EnumCheckError<T>
[src]
impl<T: Debug + Display> Error for EnumCheckError<T>
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl<T> !RefUnwindSafe for EnumCheckError<T>
impl<T> !Send for EnumCheckError<T>
impl<T> !Sync for EnumCheckError<T>
impl<T> Unpin for EnumCheckError<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for EnumCheckError<T>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more