pub struct EdgeDeclaration {
pub source: KeyPath,
pub links: Vec<EdgeLink>,
pub label: Option<Scalar>,
pub fields: Vec<Field>,
pub span: Span,
}Expand description
Declare the edges of a chain source -> target -> …, sharing one optional label and the fields of its map.
Fields§
§source: KeyPath§links: Vec<EdgeLink>§label: Option<Scalar>§fields: Vec<Field>§span: SpanTrait Implementations§
Source§impl Clone for EdgeDeclaration
impl Clone for EdgeDeclaration
Source§impl Debug for EdgeDeclaration
impl Debug for EdgeDeclaration
Source§impl PartialEq for EdgeDeclaration
impl PartialEq for EdgeDeclaration
impl StructuralPartialEq for EdgeDeclaration
Auto Trait Implementations§
impl Forget for EdgeDeclaration
impl Freeze for EdgeDeclaration
impl RefUnwindSafe for EdgeDeclaration
impl Send for EdgeDeclaration
impl Sync for EdgeDeclaration
impl Unpin for EdgeDeclaration
impl UnsafeUnpin for EdgeDeclaration
impl UnwindSafe for EdgeDeclaration
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.