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