[][src]Struct moore_vhdl::codegen::InstBuilder

pub struct InstBuilder<'ctx> {
    pub body: &'ctx mut SeqBody,
    pub block: BlockRef,
}

An helper to build sequences of instructions.

Fields

body: &'ctx mut SeqBodyblock: 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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.