Struct bytecheck::NamedEnumVariantCheckContext
source · pub struct NamedEnumVariantCheckContext {
pub enum_name: &'static str,
pub variant_name: &'static str,
pub field_name: &'static str,
}
Expand description
Context for errors resulting from checking enum variants with named fields.
This context is used by the derive macro to trace which field of an enum variant failed validation.
Fields§
§enum_name: &'static str
The name of the enum with an invalid variant.
variant_name: &'static str
The name of the variant that was invalid.
field_name: &'static str
The name of the field that was invalid.
Trait Implementations§
source§impl Debug for NamedEnumVariantCheckContext
impl Debug for NamedEnumVariantCheckContext
Auto Trait Implementations§
impl Freeze for NamedEnumVariantCheckContext
impl RefUnwindSafe for NamedEnumVariantCheckContext
impl Send for NamedEnumVariantCheckContext
impl Sync for NamedEnumVariantCheckContext
impl Unpin for NamedEnumVariantCheckContext
impl UnwindSafe for NamedEnumVariantCheckContext
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