pub struct DagDecl<P: Phase = Raw> {
pub visibility: Visibility,
pub name: Spanned<DeclName>,
pub body: Vec<Declaration<P>>,
pub span: Span,
}Expand description
Inline DAG declaration: dag name { ... }
The body contains declarations (same as file-level). Semantics are not yet implemented — this phase only parses the syntax.
Fields§
§visibility: Visibility§name: Spanned<DeclName>The DAG name.
body: Vec<Declaration<P>>Declarations inside the DAG block.
span: SpanSpan covering the entire dag name { ... } block.
Trait Implementations§
Source§impl FormatEquivalent for DagDecl
impl FormatEquivalent for DagDecl
Source§fn format_equivalent(&self, other: &Self) -> bool
fn format_equivalent(&self, other: &Self) -> bool
Returns
true if self and other are equivalent up to formatting.Auto Trait Implementations§
impl<P> Freeze for DagDecl<P>
impl<P> RefUnwindSafe for DagDecl<P>
impl<P> Send for DagDecl<P>
impl<P> Sync for DagDecl<P>
impl<P> Unpin for DagDecl<P>
impl<P> UnsafeUnpin for DagDecl<P>
impl<P> UnwindSafe for DagDecl<P>
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