pub enum ValuePathSegment {
Index(usize),
Key(String),
ResultVariant(String),
}Expand description
One location component inside a nested Rust ↔ Nybl conversion.
Variants§
Index(usize)
Array position, rendered as [index].
Key(String)
Dict key, rendered as ["key"].
ResultVariant(String)
Canonical built-in Result payload, rendered as <Ok> or <Err>.
Trait Implementations§
Source§impl Clone for ValuePathSegment
impl Clone for ValuePathSegment
Source§impl Debug for ValuePathSegment
impl Debug for ValuePathSegment
impl Eq for ValuePathSegment
Source§impl PartialEq for ValuePathSegment
impl PartialEq for ValuePathSegment
impl StructuralPartialEq for ValuePathSegment
Auto Trait Implementations§
impl Freeze for ValuePathSegment
impl RefUnwindSafe for ValuePathSegment
impl Send for ValuePathSegment
impl Sync for ValuePathSegment
impl Unpin for ValuePathSegment
impl UnsafeUnpin for ValuePathSegment
impl UnwindSafe for ValuePathSegment
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