Enum rtlola_frontend::mir::StreamReference [−][src]
Expand description
Allows for referencing a stream within the specification.
Variants
In(usize)
References an input stream.
Out(usize)
References an output stream.
Implementations
impl StreamReference
[src]
impl StreamReference
[src]pub fn out_ix(&self) -> usize
[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]
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]
pub fn ix_unchecked(&self) -> usize
[src]Returns the index inside the reference disregarding whether it is an input or output reference.
pub fn is_input(&self) -> bool
[src]
pub fn is_input(&self) -> bool
[src]True if the reference is an instance of StreamReference::In, false otherwise.
pub fn is_output(&self) -> bool
[src]
pub fn is_output(&self) -> bool
[src]True if the reference is an instance of StreamReference::Out, false otherwise.
Trait Implementations
impl Clone for StreamReference
[src]
impl Clone for StreamReference
[src]pub fn clone(&self) -> StreamReference
[src]
pub fn clone(&self) -> StreamReference
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for StreamReference
[src]
impl Debug for StreamReference
[src]impl Display for StreamReference
[src]
impl Display for StreamReference
[src]impl Hash for StreamReference
[src]
impl Hash for StreamReference
[src]impl Ord for StreamReference
[src]
impl Ord for StreamReference
[src]impl PartialEq<StreamReference> for StreamReference
[src]
impl PartialEq<StreamReference> for StreamReference
[src]pub fn eq(&self, other: &StreamReference) -> bool
[src]
pub fn eq(&self, other: &StreamReference) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &StreamReference) -> bool
[src]
pub fn ne(&self, other: &StreamReference) -> bool
[src]This method tests for !=
.
impl PartialOrd<StreamReference> for StreamReference
[src]
impl PartialOrd<StreamReference> for StreamReference
[src]pub fn partial_cmp(&self, other: &StreamReference) -> Option<Ordering>
[src]
pub fn partial_cmp(&self, other: &StreamReference) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for StreamReference
[src]
impl Eq for StreamReference
[src]
impl StructuralEq for StreamReference
[src]
impl StructuralPartialEq for StreamReference
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<N> NodeTrait for N where
N: Copy + Ord + Hash,
[src]
N: Copy + Ord + Hash,
impl<T> RuleType for T where
T: Copy + Debug + Eq + Hash + Ord,
[src]
T: Copy + Debug + Eq + Hash + Ord,