pub enum FieldIdx<'a> {
Name(&'a str),
Idx(usize),
}
Expand description
The index of a field in a struct in a [Schema
].
Variants§
Name(&'a str)
The name of a field.
Idx(usize)
The index of a field. Works for tuple fields and named fields.
Trait Implementations§
impl<'a> Copy for FieldIdx<'a>
Auto Trait Implementations§
impl<'a> Freeze for FieldIdx<'a>
impl<'a> RefUnwindSafe for FieldIdx<'a>
impl<'a> Send for FieldIdx<'a>
impl<'a> Sync for FieldIdx<'a>
impl<'a> Unpin for FieldIdx<'a>
impl<'a> UnwindSafe for FieldIdx<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)