[][src]Struct lrl_test_compiler::test_descriptor::concrete_test::ConcreteTest

pub struct ConcreteTest {
    pub environment: Environment,
    pub test: Test,
}

Struct containing the contents of the environment and the ast test

Fields

environment: Environmenttest: Test

Implementations

impl ConcreteTest[src]

pub fn try_new(environment: Environment, test: Test) -> CompilerResult<Self>[src]

Construct concrete test representation from environment and ast test struct

pub fn get_sensor_device_address(
    &self,
    sensor_id: &str
) -> CompilerResult<DeviceAddress>
[src]

Convert sensor id used in TDF file to virtual address

pub fn get_relay_device_address(
    &self,
    relay_id: &str
) -> CompilerResult<DeviceAddress>
[src]

Convert relay id used in TDF file to virtual address

pub fn get_abort_id(&self, abort_name: &str) -> CompilerResult<u32>[src]

Convert abort name used in TDF file to abort index

pub fn get_calibration(
    &self,
    sensor_id: &str
) -> CompilerResult<Option<&Calibration>>
[src]

Get calibration for provided sensor id

Auto Trait Implementations

impl RefUnwindSafe for ConcreteTest

impl Send for ConcreteTest

impl Sync for ConcreteTest

impl Unpin for ConcreteTest

impl UnwindSafe for ConcreteTest

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]