pub struct KeySegment {
pub name: String,
pub span: Span,
}Expand description
Name one segment of a key path, unquoted and unescaped, so a quoted "a.b" stays one segment.
Fields§
§name: String§span: SpanTrait Implementations§
Source§impl Clone for KeySegment
impl Clone for KeySegment
Source§impl Debug for KeySegment
impl Debug for KeySegment
Source§impl PartialEq for KeySegment
impl PartialEq for KeySegment
impl StructuralPartialEq for KeySegment
Auto Trait Implementations§
impl Forget for KeySegment
impl Freeze for KeySegment
impl RefUnwindSafe for KeySegment
impl Send for KeySegment
impl Sync for KeySegment
impl Unpin for KeySegment
impl UnsafeUnpin for KeySegment
impl UnwindSafe for KeySegment
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.