pub enum SemiStructuredPathSegment<X: Extension = NoExt> {
Key {
key: Ident,
meta: Meta,
},
Index {
index: Box<Expr<X>>,
meta: Meta,
},
}Expand description
One segment of a semi-structured value path.
Variants§
Key
A field/key segment, written as :key for the first segment or .key after that.
Index
An array/list index segment, written as [index].
Trait Implementations§
Source§impl<X: Clone + Extension> Clone for SemiStructuredPathSegment<X>
impl<X: Clone + Extension> Clone for SemiStructuredPathSegment<X>
Source§fn clone(&self) -> SemiStructuredPathSegment<X>
fn clone(&self) -> SemiStructuredPathSegment<X>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de, X> Deserialize<'de> for SemiStructuredPathSegment<X>where
X: Deserialize<'de> + Extension,
impl<'de, X> Deserialize<'de> for SemiStructuredPathSegment<X>where
X: Deserialize<'de> + Extension,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<X: Eq + Extension> Eq for SemiStructuredPathSegment<X>
Source§impl<X> Serialize for SemiStructuredPathSegment<X>
impl<X> Serialize for SemiStructuredPathSegment<X>
Source§impl<X: Extension> Spanned for SemiStructuredPathSegment<X>
impl<X: Extension> Spanned for SemiStructuredPathSegment<X>
impl<X: PartialEq + Extension> StructuralPartialEq for SemiStructuredPathSegment<X>
Auto Trait Implementations§
impl<X> Freeze for SemiStructuredPathSegment<X>
impl<X> RefUnwindSafe for SemiStructuredPathSegment<X>where
X: RefUnwindSafe,
impl<X> Send for SemiStructuredPathSegment<X>where
X: Send,
impl<X> Sync for SemiStructuredPathSegment<X>where
X: Sync,
impl<X> Unpin for SemiStructuredPathSegment<X>
impl<X> UnsafeUnpin for SemiStructuredPathSegment<X>
impl<X> UnwindSafe for SemiStructuredPathSegment<X>where
X: UnwindSafe,
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