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.
Fields§
§enum_name: &'static strThe name of the enum with an invalid variant.
variant_name: &'static strThe name of the variant that was invalid.
field_name: &'static strThe name of the field that was invalid.
Trait Implementations§
source§impl Debug for NamedEnumVariantCheckContext
impl Debug for NamedEnumVariantCheckContext
Auto Trait Implementations§
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