pub struct ValidateFieldDescriptor<T> { /* private fields */ }Expand description
ValidateFieldDescriptor
Runtime validation descriptor for one generated struct field.
Generated code uses this to replace repeated per-field validate_self
bodies with one shared descriptor loop while preserving typed field access
at the boundary.
Implementations§
Source§impl<T> ValidateFieldDescriptor<T>
impl<T> ValidateFieldDescriptor<T>
Sourcepub const fn new(validate: fn(&T, &mut dyn VisitorContext)) -> Self
pub const fn new(validate: fn(&T, &mut dyn VisitorContext)) -> Self
Construct one validation descriptor for one generated field.
Auto Trait Implementations§
impl<T> Freeze for ValidateFieldDescriptor<T>
impl<T> RefUnwindSafe for ValidateFieldDescriptor<T>
impl<T> Send for ValidateFieldDescriptor<T>
impl<T> Sync for ValidateFieldDescriptor<T>
impl<T> Unpin for ValidateFieldDescriptor<T>
impl<T> UnsafeUnpin for ValidateFieldDescriptor<T>
impl<T> UnwindSafe for ValidateFieldDescriptor<T>
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