pub struct KeyPath {
pub parent_references: usize,
pub segments: Vec<KeySegment>,
pub span: Span,
}Expand description
Address a shape by the dotted path of its key, e.g. a.b."c.d", after climbing one scope per leading _.
Fields§
§parent_references: usize§segments: Vec<KeySegment>§span: SpanTrait Implementations§
impl StructuralPartialEq for KeyPath
Auto Trait Implementations§
impl Forget for KeyPath
impl Freeze for KeyPath
impl Move for KeyPath
impl RefUnwindSafe for KeyPath
impl Send for KeyPath
impl Sync for KeyPath
impl Unpin for KeyPath
impl UnsafeUnpin for KeyPath
impl UnwindSafe for KeyPath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.