Enum rtlola_frontend::mir::StreamReference
source · pub enum StreamReference {
In(usize),
Out(usize),
}
Expand description
Allows for referencing a stream within the specification.
Variants§
Implementations§
source§impl StreamReference
impl StreamReference
sourcepub fn out_ix(&self) -> usize
pub fn out_ix(&self) -> usize
Returns the index inside the reference if it is an output reference. Panics otherwise.
sourcepub fn in_ix(&self) -> usize
pub fn in_ix(&self) -> usize
Returns the index inside the reference if it is an input reference. Panics otherwise.
sourcepub fn ix_unchecked(&self) -> usize
pub fn ix_unchecked(&self) -> usize
Returns the index inside the reference disregarding whether it is an input or output reference.
sourcepub fn is_input(&self) -> bool
pub fn is_input(&self) -> bool
True if the reference is an instance of StreamReference::In, false otherwise.
sourcepub fn is_output(&self) -> bool
pub fn is_output(&self) -> bool
True if the reference is an instance of StreamReference::Out, false otherwise.
Trait Implementations§
source§impl Clone for StreamReference
impl Clone for StreamReference
source§fn clone(&self) -> StreamReference
fn clone(&self) -> StreamReference
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StreamReference
impl Debug for StreamReference
source§impl<'de> Deserialize<'de> for StreamReference
impl<'de> Deserialize<'de> for StreamReference
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<StreamReference, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<StreamReference, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for StreamReference
impl Display for StreamReference
source§impl Hash for StreamReference
impl Hash for StreamReference
source§impl Ord for StreamReference
impl Ord for StreamReference
source§fn cmp(&self, other: &StreamReference) -> Ordering
fn cmp(&self, other: &StreamReference) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<StreamReference> for StreamReference
impl PartialEq<StreamReference> for StreamReference
source§fn eq(&self, other: &StreamReference) -> bool
fn eq(&self, other: &StreamReference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<StreamReference> for StreamReference
impl PartialOrd<StreamReference> for StreamReference
source§fn partial_cmp(&self, other: &StreamReference) -> Option<Ordering>
fn partial_cmp(&self, other: &StreamReference) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for StreamReference
impl Serialize for StreamReference
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for StreamReference
impl Eq for StreamReference
impl StructuralEq for StreamReference
impl StructuralPartialEq for StreamReference
Auto Trait Implementations§
impl RefUnwindSafe for StreamReference
impl Send for StreamReference
impl Sync for StreamReference
impl Unpin for StreamReference
impl UnwindSafe for StreamReference
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.