[−][src]Struct moore_vhdl::codegen::InstBuilder
An helper to build sequences of instructions.
Fields
body: &'ctx mut SeqBody
block: BlockRef
Methods
impl<'ctx> InstBuilder<'ctx>
[src]
impl<'ctx> InstBuilder<'ctx>
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]
impl<'lazy, 'sb, 'ast, 'ctx, 'a> Codegen<SeqStmtRef, InstBuilder<'a>> for ScoreContext<'lazy, 'sb, 'ast, 'ctx>
fn codegen(&self, id: SeqStmtRef, _ctx: &mut InstBuilder<'a>) -> Result<()> | [src] |
Auto Trait Implementations
impl<'ctx> Send for InstBuilder<'ctx>
impl<'ctx> Send for InstBuilder<'ctx>
impl<'ctx> Sync for InstBuilder<'ctx>
impl<'ctx> Sync for InstBuilder<'ctx>
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,