pub struct VerilogModule {
pub name: String,
pub body: String,
}Expand description
A generated Verilog module: name + body text.
Fields§
§name: String§body: StringImplementations§
Source§impl VerilogModule
impl VerilogModule
Sourcepub fn render_with_target(&self, target: TargetHardware) -> String
pub fn render_with_target(&self, target: TargetHardware) -> String
Write to a string with target-specific headers.
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 (const: unstable) · 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