pub enum FieldSelector {
Named(&'static str),
Index {
index: usize,
declared_fields: usize,
},
}Expand description
Identity-based selector for a reflected field, preserving the declaration index for tuples.
Variants§
Named(&'static str)
Named field identity.
Index
Tuple field identity. The full arity detects reflection that omits positions.
Trait Implementations§
Source§impl Clone for FieldSelector
impl Clone for FieldSelector
impl Copy for FieldSelector
Auto Trait Implementations§
impl Freeze for FieldSelector
impl RefUnwindSafe for FieldSelector
impl Send for FieldSelector
impl Sync for FieldSelector
impl Unpin for FieldSelector
impl UnsafeUnpin for FieldSelector
impl UnwindSafe for FieldSelector
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