Struct flow_graph::PortReference
source · pub struct PortReference { /* private fields */ }
Implementations§
source§impl PortReference
impl PortReference
pub fn new( node_index: NodeIndex, port_index: PortIndex, direction: PortDirection ) -> Self
pub fn direction(&self) -> &PortDirection
pub fn node_index(&self) -> NodeIndex
pub fn port_index(&self) -> PortIndex
Trait Implementations§
source§impl AsRef<PortReference> for NodePort
impl AsRef<PortReference> for NodePort
source§fn as_ref(&self) -> &PortReference
fn as_ref(&self) -> &PortReference
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<'graph, DATA> AsRef<PortReference> for Port<'graph, DATA>
impl<'graph, DATA> AsRef<PortReference> for Port<'graph, DATA>
source§fn as_ref(&self) -> &PortReference
fn as_ref(&self) -> &PortReference
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<PortReference> for PortReference
impl AsRef<PortReference> for PortReference
source§fn as_ref(&self) -> &PortReference
fn as_ref(&self) -> &PortReference
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for PortReference
impl Clone for PortReference
source§fn clone(&self) -> PortReference
fn clone(&self) -> PortReference
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 PortReference
impl Debug for PortReference
source§impl Display for PortReference
impl Display for PortReference
source§impl From<&NodePort> for PortReference
impl From<&NodePort> for PortReference
source§impl Hash for PortReference
impl Hash for PortReference
source§impl PartialEq<PortReference> for PortReference
impl PartialEq<PortReference> for PortReference
source§fn eq(&self, other: &PortReference) -> bool
fn eq(&self, other: &PortReference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.