[][src]Struct lrl_test_compiler::test_builder::InstructionStreamBuilder

pub struct InstructionStreamBuilder<'a> {
    pub test_builder: &'a mut TestBuilder,
    pub stream_id: StreamId<'a>,
}

Builder for a vector of instructions for either a test body or abort

Fields

test_builder: &'a mut TestBuilderstream_id: StreamId<'a>

Implementations

impl<'a> InstructionStreamBuilder<'a>[src]

pub fn new(test_builder: &'a mut TestBuilder, stream_id: StreamId<'a>) -> Self[src]

Create a new stream builder which will add instructions to the given stream id

pub fn at(&mut self, time: u128) -> MomentBuilder<'_>[src]

Create a moment builder for this instruction stream at an instant in time

pub fn after_end(&mut self, offset: u128) -> MomentBuilder<'_>[src]

Create a moment builder for this instruction stream at an offset after the current end of the test

pub fn from(&mut self, start: u128, end: u128) -> IntervalBuilder<'_>[src]

Create an interval builder for this instruction stream from a given start and end time

pub fn section_from(
    &mut self,
    start: u128,
    duration: u128,
    section_name: &str
) -> InstructionStreamBuilder<'_>
[src]

Create a section statement within this instruction stream and return a new instruction stream builder to add instructions to the new section statement

fn get_largest_time(&self) -> u128[src]

Helper function to find the largest time in the instr stream. Used to place new statements at the end

Auto Trait Implementations

impl<'a> RefUnwindSafe for InstructionStreamBuilder<'a>

impl<'a> Send for InstructionStreamBuilder<'a>

impl<'a> Sync for InstructionStreamBuilder<'a>

impl<'a> Unpin for InstructionStreamBuilder<'a>

impl<'a> !UnwindSafe for InstructionStreamBuilder<'a>

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<Src, Dst> LosslessTryInto<Dst> for Src where
    Dst: LosslessTryFrom<Src>, 
[src]

impl<Src, Dst> LossyInto<Dst> for Src where
    Dst: LossyFrom<Src>, 
[src]

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

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]