pub struct PortReference { /* private fields */ }
Implementations§
Source§impl PortReference
impl PortReference
pub const fn new( node_index: NodeIndex, port_index: PortIndex, direction: PortDirection, ) -> Self
pub const fn direction(&self) -> &PortDirection
pub const fn node_index(&self) -> NodeIndex
pub const 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 for PortReference
impl PartialEq for PortReference
impl Copy for PortReference
impl Eq for PortReference
impl StructuralPartialEq for PortReference
Auto Trait Implementations§
impl Freeze for PortReference
impl RefUnwindSafe for PortReference
impl Send for PortReference
impl Sync for PortReference
impl Unpin for PortReference
impl UnwindSafe for PortReference
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more