pub enum Decl {
Int(Id, Ty),
Wire(Id, Ty),
Reg(Id, Ty),
Array(Id, Ty, Ty),
Param(Id, Expr),
AttributeDecl(Attribute, Rc<Decl>),
}Variants§
Int(Id, Ty)
Wire(Id, Ty)
Reg(Id, Ty)
Array(Id, Ty, Ty)
Param(Id, Expr)
AttributeDecl(Attribute, Rc<Decl>)
Implementations§
Source§impl Decl
impl Decl
pub fn new_int(name: &str) -> Decl
pub fn new_wire(name: &str, width: u64) -> Decl
pub fn new_reg(name: &str, width: u64) -> Decl
pub fn new_array(name: &str, width: u64, depth: u64) -> Decl
pub fn new_param_uint(name: &str, value: u32) -> Decl
pub fn new_param_str(name: &str, value: &str) -> Decl
pub fn new_attribute_decl(attr: Attribute, decl: Decl) -> Decl
Trait Implementations§
Source§impl PrettyPrint for Decl
impl PrettyPrint for Decl
impl Eq for Decl
impl StructuralPartialEq for Decl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more