pub enum Decl {
Mod(Loc, Name, Vec<Decl>),
ModInst(Loc, Name, Name),
Incoming(Loc, Name, Type),
Outgoing(Loc, Name, Type),
Node(Loc, Name, Type),
Reg(Loc, Name, Type, Option<Box<Expr>>),
Wire(Loc, Wire),
When(Loc, When),
}Expand description
A Decl is a declaration that lives inside of a mod or ext definiton.
Variants§
Mod(Loc, Name, Vec<Decl>)
ModInst(Loc, Name, Name)
Incoming(Loc, Name, Type)
Outgoing(Loc, Name, Type)
Node(Loc, Name, Type)
Reg(Loc, Name, Type, Option<Box<Expr>>)
Wire(Loc, Wire)
When(Loc, When)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Decl
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