pub struct Link { /* private fields */ }Expand description
Representation of a link.
This is a fat link, if used on its own, or a thin link, if paired
with a Face. See CEStructure’s private field links, or
the implementation of CEStructure::check_coherence().
Implementations§
Source§impl Link
impl Link
pub fn new( tx_port_id: PortID, tx_node_id: NodeID, rx_port_id: PortID, rx_node_id: NodeID, ) -> Link
pub fn get_atom_id(&self) -> NonZero<usize>
pub fn get_link_id(&self) -> LinkID
pub fn get_port_id(&self, face: Face) -> PortID
pub fn get_node_id(&self, face: Face) -> NodeID
pub fn get_tx_port_id(&self) -> PortID
pub fn get_tx_node_id(&self) -> NodeID
pub fn get_rx_port_id(&self) -> PortID
pub fn get_rx_node_id(&self) -> NodeID
Trait Implementations§
Source§impl ExclusivelyContextual for Link
impl ExclusivelyContextual for Link
impl Eq for Link
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnwindSafe for Link
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Contextual for Twhere
T: ExclusivelyContextual,
impl<T> Contextual for Twhere
T: ExclusivelyContextual,
Source§impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference
impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference
Source§unsafe fn part_ptr(
ptr: *const <Reference as PartialRefTarget>::RawTarget,
) -> <<Inner as Part>::PartType as PartType>::Ptr
unsafe fn part_ptr( ptr: *const <Reference as PartialRefTarget>::RawTarget, ) -> <<Inner as Part>::PartType as PartType>::Ptr
Given a constant pointer to a target, produce a constant pointer to a part of it.
Source§unsafe fn part_ptr_mut(
ptr: *mut <Reference as PartialRefTarget>::RawTarget,
) -> <<Inner as Part>::PartType as PartType>::PtrMut
unsafe fn part_ptr_mut( ptr: *mut <Reference as PartialRefTarget>::RawTarget, ) -> <<Inner as Part>::PartType as PartType>::PtrMut
Given a mutable pointer to a target, produce a mutable pointer to a part of it.