[][src]Enum rtlola_frontend::ir::StreamReference

pub enum StreamReference {
    InRef(InputReference),
    OutRef(OutputReference),
}

Allows for referencing a stream within the specification.

Variants

References an input stream.

References an output stream.

Implementations

impl StreamReference[src]

pub fn out_ix(&self) -> usize[src]

Returns the index inside the reference if it is an output reference. Panics otherwise.

pub fn in_ix(&self) -> usize[src]

Returns the index inside the reference if it is an input reference. Panics otherwise.

pub fn ix_unchecked(&self) -> usize[src]

Returns the index inside the reference disregarding whether it is an input or output reference.

Trait Implementations

impl Clone for StreamReference[src]

impl Copy for StreamReference[src]

impl Debug for StreamReference[src]

impl Display for StreamReference[src]

impl Eq for StreamReference[src]

impl Hash for StreamReference[src]

impl PartialEq<StreamReference> for StreamReference[src]

impl StructuralEq for StreamReference[src]

impl StructuralPartialEq for StreamReference[src]

Auto Trait Implementations

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.