[][src]Struct lrl_test_compiler::test_binary::Test

pub struct Test {
    pub aborts: [Abort; 15],
    pub body: TestBody,
}

Represents a Test and the logic required to create a Test Binary File from it.

Fields

aborts: [Abort; 15]

The Abort Sequences in the test. The index of an Abort in this Vec is one less than it's "abort_idx", because the hard abort has index 0, but is implicitly defined.

body: TestBody

The main body of the test that is executed when the test is run

Implementations

impl Test[src]

pub fn new() -> Self[src]

Creates a new empty test with no aborts, and no instructions

fn append_header_to_buffer(&self, buffer: &mut BitWriter)[src]

Appends the Test Header to a buffer

Appends the Test Footer to the buffer. In the future this will involve computing the hash value of the test so far. Returns the crc hash of this TBF

pub fn append_to_buffer(&self, buffer: &mut BitWriter) -> u32[src]

Appends the entire contents of this Test to a BitWriter

pub fn disassemble(&self) -> CompilerResult<String>[src]

Format Test for TAF output

const HEADER_LEN: u32[src]

The length of the Test Binary File Header.

const FOOTER_LEN: u32[src]

The length of the Test Binary File Footer.

pub fn len(&self) -> u32[src]

Computes the number of bytes this Test will take up after serialization.

Auto Trait Implementations

impl RefUnwindSafe for Test

impl Send for Test

impl Sync for Test

impl Unpin for Test

impl UnwindSafe for Test

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]