pub struct NodeDecl<P: Phase = Raw> {
pub visibility: Visibility,
pub name: Spanned<DeclName>,
pub type_ann: TypeExpr<P>,
pub value: Expr<P>,
}Expand description
Runtime node declaration: node name: Type = expr;
Fields§
§visibility: Visibility§name: Spanned<DeclName>§type_ann: TypeExpr<P>§value: Expr<P>Trait Implementations§
Source§impl FormatEquivalent for NodeDecl
impl FormatEquivalent for NodeDecl
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 NodeDecl<P>
impl<P> RefUnwindSafe for NodeDecl<P>
impl<P> Send for NodeDecl<P>
impl<P> Sync for NodeDecl<P>
impl<P> Unpin for NodeDecl<P>
impl<P> UnsafeUnpin for NodeDecl<P>
impl<P> UnwindSafe for NodeDecl<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