Struct flow_graph::Connection
source · pub struct Connection<DATA> { /* private fields */ }
Implementations§
source§impl<DATA> Connection<DATA>where
DATA: Clone,
impl<DATA> Connection<DATA>where DATA: Clone,
pub fn index(&self) -> &ConnectionIndex
pub fn from(&self) -> &PortReference
pub fn to(&self) -> &PortReference
pub fn data(&self) -> &Option<DATA>
Trait Implementations§
source§impl<DATA: Clone> Clone for Connection<DATA>
impl<DATA: Clone> Clone for Connection<DATA>
source§fn clone(&self) -> Connection<DATA>
fn clone(&self) -> Connection<DATA>
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<DATA: Debug> Debug for Connection<DATA>
impl<DATA: Debug> Debug for Connection<DATA>
source§impl<DATA> Display for Connection<DATA>
impl<DATA> Display for Connection<DATA>
source§impl<DATA: PartialEq> PartialEq<Connection<DATA>> for Connection<DATA>
impl<DATA: PartialEq> PartialEq<Connection<DATA>> for Connection<DATA>
source§fn eq(&self, other: &Connection<DATA>) -> bool
fn eq(&self, other: &Connection<DATA>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.