[][src]Struct lrl_test_compiler::test_builder::MomentBuilder

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

Builder for a single instruction at an instant relative time

Fields

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

Implementations

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

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

pub fn set(self, relay_name: &str)[src]

Set the provided relay at this moment

pub fn unset(self, relay_name: &str)[src]

Unset the provided relay at this moment

pub fn require(
    self,
    sensor_name: &str,
    left_bound: f64,
    right_bound: f64,
    abort_name: &str
)
[src]

Require a sensor at this moment

Auto Trait Implementations

impl<'a> RefUnwindSafe for MomentBuilder<'a>

impl<'a> Send for MomentBuilder<'a>

impl<'a> Sync for MomentBuilder<'a>

impl<'a> Unpin for MomentBuilder<'a>

impl<'a> !UnwindSafe for MomentBuilder<'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]