pub struct Port<'graph, DATA> { /* private fields */ }
Implementations§
Source§impl<'graph, DATA> Port<'graph, DATA>where
DATA: Clone,
impl<'graph, DATA> Port<'graph, DATA>where
DATA: Clone,
pub const fn new( schematic: &'graph Schematic<DATA>, port: PortReference, ) -> Self
pub const fn node(&self) -> NodeHop<'_, DATA>
pub fn connections(&self) -> Connections<'_, DATA> ⓘ
pub fn name(&self) -> &str
pub fn inner(&self) -> &NodePort
pub const fn direction(&self) -> PortDirection
Trait Implementations§
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.
Auto Trait Implementations§
impl<'graph, DATA> Freeze for Port<'graph, DATA>
impl<'graph, DATA> RefUnwindSafe for Port<'graph, DATA>where
DATA: RefUnwindSafe,
impl<'graph, DATA> Send for Port<'graph, DATA>where
DATA: Sync,
impl<'graph, DATA> Sync for Port<'graph, DATA>where
DATA: Sync,
impl<'graph, DATA> Unpin for Port<'graph, DATA>
impl<'graph, DATA> UnwindSafe for Port<'graph, DATA>where
DATA: RefUnwindSafe,
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