[−][src]Struct lrl_test_compiler::test_builder::InstructionStreamBuilder
Builder for a vector of instructions for either a test body or abort
Fields
test_builder: &'a mut TestBuilder
stream_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]
&mut self,
start: u128,
duration: u128,
section_name: &str
) -> InstructionStreamBuilder<'_>
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]
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,
pub 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<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
[src]
Dst: LosslessTryFrom<Src>,
pub fn lossless_try_into(self) -> Option<Dst>
[src]
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
[src]
Dst: LossyFrom<Src>,
pub fn lossy_into(self) -> Dst
[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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,