pub struct ShapeDeclaration {
pub path: KeyPath,
pub label: Option<Scalar>,
pub body: Vec<Statement>,
pub span: Span,
}Expand description
Declare the shape at path, optionally labelled, with the statements of its nested map.
Fields§
§path: KeyPath§label: Option<Scalar>§body: Vec<Statement>§span: SpanTrait Implementations§
Source§impl Clone for ShapeDeclaration
impl Clone for ShapeDeclaration
Source§impl Debug for ShapeDeclaration
impl Debug for ShapeDeclaration
Source§impl PartialEq for ShapeDeclaration
impl PartialEq for ShapeDeclaration
impl StructuralPartialEq for ShapeDeclaration
Auto Trait Implementations§
impl Forget for ShapeDeclaration
impl Freeze for ShapeDeclaration
impl RefUnwindSafe for ShapeDeclaration
impl Send for ShapeDeclaration
impl Sync for ShapeDeclaration
impl Unpin for ShapeDeclaration
impl UnsafeUnpin for ShapeDeclaration
impl UnwindSafe for ShapeDeclaration
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.