Enum rtlola_hir::hir::StreamReference
source · [−]pub enum StreamReference {
In(InputReference),
Out(OutputReference),
}
Expand description
Allows for referencing a stream within the specification.
Variants
In(InputReference)
References an input stream.
Out(OutputReference)
References an output stream.
Implementations
sourceimpl 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
sourceimpl Clone for StreamReference
impl Clone for StreamReference
sourcefn clone(&self) -> StreamReference
fn clone(&self) -> StreamReference
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StreamReference
impl Debug for StreamReference
sourceimpl<'de> Deserialize<'de> for StreamReference
impl<'de> Deserialize<'de> for StreamReference
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for StreamReference
impl Display for StreamReference
sourceimpl Hash for StreamReference
impl Hash for StreamReference
sourceimpl Ord for StreamReference
impl Ord for StreamReference
sourceimpl PartialEq<StreamReference> for StreamReference
impl PartialEq<StreamReference> for StreamReference
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &StreamReference) -> bool
fn ne(&self, other: &StreamReference) -> bool
This method tests for !=
.
sourceimpl PartialOrd<StreamReference> for StreamReference
impl PartialOrd<StreamReference> for StreamReference
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl Serialize for StreamReference
impl Serialize for StreamReference
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more