Expand description
Allows for referencing a stream within the specification.
Variants§
Implementations§
§impl StreamReference
impl StreamReference
pub 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.
pub 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.
pub 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.
pub fn is_input(&self) -> bool
pub fn is_input(&self) -> bool
True if the reference is an instance of StreamReference::In, false otherwise.
pub 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§
§impl Clone for StreamReference
impl Clone for StreamReference
§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 more§impl Debug for StreamReference
impl Debug for StreamReference
§impl<'de> Deserialize<'de> for StreamReference
impl<'de> Deserialize<'de> for StreamReference
§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
§impl Display for StreamReference
impl Display for StreamReference
§impl Hash for StreamReference
impl Hash for StreamReference
§impl Ord for StreamReference
impl Ord for StreamReference
§impl PartialEq<StreamReference> for StreamReference
impl PartialEq<StreamReference> for StreamReference
§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 ==.§impl PartialOrd<StreamReference> for StreamReference
impl PartialOrd<StreamReference> for StreamReference
§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 more§impl Serialize for StreamReference
impl Serialize for StreamReference
§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.