pub struct KeyLookup {
pub len: NonZero<usize>,
pub names: Option<&'static [&'static str]>,
}
Expand description
Data to look up field names and convert to indices
This struct used together with crate::TreeKey
.
Fields§
§len: NonZero<usize>
The number of top-level nodes.
This is used by impl Keys for Packed
.
names: Option<&'static [&'static str]>
Node names, if any.
If nodes have names, this is a slice of them.
If it is Some
, it’s .len()
is guaranteed to be LEN
.
Implementations§
Auto Trait Implementations§
impl Freeze for KeyLookup
impl RefUnwindSafe for KeyLookup
impl Send for KeyLookup
impl Sync for KeyLookup
impl Unpin for KeyLookup
impl UnwindSafe for KeyLookup
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