pub struct VerilogModule {
pub name: String,
pub ports: Vec<VerilogPort>,
pub params: Vec<(String, u64)>,
pub body: Vec<String>,
}Expand description
A complete Verilog / SystemVerilog module definition.
Fields§
§name: StringModule name (identifier)
ports: Vec<VerilogPort>Port list
params: Vec<(String, u64)>parameter declarations: (name, default_value)
body: Vec<String>Body statements (already-formatted strings)
Implementations§
Trait Implementations§
Source§impl Clone for VerilogModule
impl Clone for VerilogModule
Source§fn clone(&self) -> VerilogModule
fn clone(&self) -> VerilogModule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VerilogModule
impl RefUnwindSafe for VerilogModule
impl Send for VerilogModule
impl Sync for VerilogModule
impl Unpin for VerilogModule
impl UnsafeUnpin for VerilogModule
impl UnwindSafe for VerilogModule
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