Skip to main content

Step

Enum Step 

Source
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§

Source§

impl<'a> Debug for Step<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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>
where &'a str: Freeze, &'a Value: Freeze,

§

impl<'a> Move for Step<'a>

§

impl<'a> Send for Step<'a>
where &'a str: Send, &'a Value: Send,

§

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>
where &'a str: Unpin, &'a Value: Unpin,

§

impl<'a> UnsafeUnpin for Step<'a>
where &'a str: UnsafeUnpin, &'a Value: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.