pub struct Node<I: NodeId, W: NodeWeight> {
pub id: I,
pub weight: W,
pub neighbours: Vec<NodeConnection<I, W>>,
}Fields§
§id: I§weight: W§neighbours: Vec<NodeConnection<I, W>>Trait Implementations§
Auto Trait Implementations§
impl<I, W> Freeze for Node<I, W>
impl<I, W> RefUnwindSafe for Node<I, W>where
I: RefUnwindSafe,
W: RefUnwindSafe,
impl<I, W> Send for Node<I, W>
impl<I, W> Sync for Node<I, W>
impl<I, W> Unpin for Node<I, W>
impl<I, W> UnsafeUnpin for Node<I, W>where
I: UnsafeUnpin,
W: UnsafeUnpin,
impl<I, W> UnwindSafe for Node<I, W>where
I: UnwindSafe,
W: 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