Enum bitsy_lang::ast::Decl  
source · pub enum Decl {
    Mod(Span, Ident, Vec<Decl>),
    ModInst(Span, Ident, Ident),
    Dom(Span, Ident),
    Incoming(Span, Ident, Type),
    Outgoing(Span, Ident, Type),
    Node(Span, Ident, Type),
    Reg(Span, Ident, Type, Option<Box<Expr>>),
    Wire(Span, Wire),
    When(Span, When),
}Expand description
A Decl is a declaration that lives inside of a mod or ext definiton.
Variants§
Mod(Span, Ident, Vec<Decl>)
ModInst(Span, Ident, Ident)
Dom(Span, Ident)
Incoming(Span, Ident, Type)
Outgoing(Span, Ident, Type)
Node(Span, Ident, Type)
Reg(Span, Ident, Type, Option<Box<Expr>>)
Wire(Span, Wire)
When(Span, When)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Decl
impl Send for Decl
impl Sync for Decl
impl Unpin for Decl
impl UnwindSafe for Decl
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