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