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