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 const fn index(&self) -> &ConnectionIndex
pub const fn from(&self) -> &PortReference
pub const fn to(&self) -> &PortReference
pub const fn data(&self) -> &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 ==
.impl<DATA: Copy> Copy for Connection<DATA>
impl<DATA: Eq> Eq for Connection<DATA>
impl<DATA> StructuralEq for Connection<DATA>
impl<DATA> StructuralPartialEq for Connection<DATA>
Auto Trait Implementations§
impl<DATA> RefUnwindSafe for Connection<DATA>where DATA: RefUnwindSafe,
impl<DATA> Send for Connection<DATA>where DATA: Send,
impl<DATA> Sync for Connection<DATA>where DATA: Sync,
impl<DATA> Unpin for Connection<DATA>where DATA: Unpin,
impl<DATA> UnwindSafe for Connection<DATA>where DATA: UnwindSafe,
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