[−][src]Struct moore_vhdl::codegen::InstBuilder
An helper to build sequences of instructions.
Fields
body: &'ctx mut SeqBody
block: BlockRef
Implementations
impl<'ctx> InstBuilder<'ctx>
[src]
pub fn new(body: &'ctx mut SeqBody, block: BlockRef) -> InstBuilder<'ctx>
[src]
Create a new instruction builder.
pub fn add_inst(&mut self, inst: Inst) -> InstRef
[src]
Add a new instruction.
pub fn add_block(&mut self, block: Block) -> BlockRef
[src]
Add a new block.
pub fn set_block(&mut self, block: BlockRef)
[src]
Change the block at the end of which instructions will be added.
Trait Implementations
impl<'lazy, 'sb, 'ast, 'ctx, 'a> Codegen<SeqStmtRef, InstBuilder<'a>> for ScoreContext<'lazy, 'sb, 'ast, 'ctx>
[src]
fn codegen(&self, id: SeqStmtRef, _ctx: &mut InstBuilder<'a>) -> Result<()>
[src]
Auto Trait Implementations
impl<'ctx> RefUnwindSafe for InstBuilder<'ctx>
impl<'ctx> Send for InstBuilder<'ctx>
impl<'ctx> Sync for InstBuilder<'ctx>
impl<'ctx> Unpin for InstBuilder<'ctx>
impl<'ctx> !UnwindSafe for InstBuilder<'ctx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,