[][src]Struct lrl_test_compiler::timeline::relays::RelaysTimeline

pub struct RelaysTimeline {
    pub endpoints: Vec<u32>,
    pub operations: Vec<Vec<RelayStatement>>,
}

Timeline of all relay operations over the whole test endpoints vector gives time for specific relay operations endpoints[0] is the time for all relay statements in operations[0]

Fields

endpoints: Vec<u32>

Times of relay operations

operations: Vec<Vec<RelayStatement>>

Implementations

impl RelaysTimeline[src]

pub fn new() -> Self[src]

pub fn add_relay_statement(
    &mut self,
    statement: &RelayStatement
) -> CompilerResult<()>
[src]

Adds relay operation from relay statement into relay timeline and inserts any necessary endpoint

pub fn validate(&self, concrete: &ConcreteTest) -> CompilerResult<()>[src]

Ensure relay timeline satisfies all design requirements such as all relays must be unset at end of test

pub fn to_instrs(
    &self,
    concrete: &ConcreteTest
) -> CompilerResult<Vec<(u32, RelayInstr)>>
[src]

Trait Implementations

impl Debug for RelaysTimeline[src]

impl PartialEq<RelaysTimeline> for RelaysTimeline[src]

impl StructuralPartialEq for RelaysTimeline[src]

Auto Trait Implementations

impl RefUnwindSafe for RelaysTimeline

impl Send for RelaysTimeline

impl Sync for RelaysTimeline

impl Unpin for RelaysTimeline

impl UnwindSafe for RelaysTimeline

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]