pub struct Node<N: NodeType, EXTID: Copy + Debug + Send + Sized + Ord = ExternalId> { /* private fields */ }Implementations§
Source§impl<N: NodeType, EXTID: Copy + Debug + Send + Sized + Ord> Node<N, EXTID>
impl<N: NodeType, EXTID: Copy + Debug + Send + Sized + Ord> Node<N, EXTID>
pub fn node_type(&self) -> &N
pub fn set_node_type(&mut self, node_type: N)
pub fn external_node_id(&self) -> EXTID
pub fn degree(&self) -> usize
pub fn in_degree(&self) -> u32
pub fn out_degree(&self) -> u32
pub fn in_out_degree(&self) -> (u32, u32)
Trait Implementations§
Auto Trait Implementations§
impl<N, EXTID> Freeze for Node<N, EXTID>
impl<N, EXTID> RefUnwindSafe for Node<N, EXTID>where
N: RefUnwindSafe,
EXTID: RefUnwindSafe,
impl<N, EXTID> Send for Node<N, EXTID>
impl<N, EXTID> Sync for Node<N, EXTID>
impl<N, EXTID> Unpin for Node<N, EXTID>
impl<N, EXTID> UnwindSafe for Node<N, EXTID>where
N: UnwindSafe,
EXTID: 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