pub enum Step<'a> {
Field(&'a str),
Constructor(&'a str),
Element(usize),
Key(&'a Value),
}Expand description
One step into a value from the aggregate that holds it.
Variants§
Field(&'a str)
A record field, or a named payload field, by name.
Constructor(&'a str)
The payload of the enum constructor of this name.
Element(usize)
The element at this index, from 0, of a list, set, tuple or positional payload, or the key of a dictionary’s entry at this index.
Key(&'a Value)
The value under this key of a dictionary.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Step<'a>
impl<'a> !UnwindSafe for Step<'a>
impl<'a> Forget for Step<'a>
impl<'a> Freeze for Step<'a>
impl<'a> Move for Step<'a>
impl<'a> Send for Step<'a>
impl<'a> Sync for Step<'a>where
RawVecInner: Sync,
Arc<Inner<Run>>: Sync,
Arc<OnceLock<Arc<str>>>: Sync,
Arc<[u8]>: Sync,
Arc<Vec<Value>>: Sync,
Arc<Inner<Value>>: Sync,
Arc<Inner<(Value, Value)>>: Sync,
Arc<Inner<Member>>: Sync,
Arc<[Value]>: Sync,
Arc<RecordShape>: Sync,
Arc<EnumShape>: Sync,
Arc<dyn Carry>: Sync,
Arc<str>: Sync,
impl<'a> Unpin for Step<'a>
impl<'a> UnsafeUnpin for Step<'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