pub struct NodeConnection<I: NodeId, W: NodeWeight> {
pub from: I,
pub to: I,
pub weight: W,
}Fields§
§from: I§to: I§weight: WTrait Implementations§
Source§impl<I: NodeId, W: NodeWeight> AsRef<NodeConnection<I, W>> for NodeConnection<I, W>
impl<I: NodeId, W: NodeWeight> AsRef<NodeConnection<I, W>> for NodeConnection<I, W>
Source§fn as_ref(&self) -> &NodeConnection<I, W>
fn as_ref(&self) -> &NodeConnection<I, W>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<I: Clone + NodeId, W: Clone + NodeWeight> Clone for NodeConnection<I, W>
impl<I: Clone + NodeId, W: Clone + NodeWeight> Clone for NodeConnection<I, W>
Source§fn clone(&self) -> NodeConnection<I, W>
fn clone(&self) -> NodeConnection<I, W>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<I: Debug + NodeId, W: Debug + NodeWeight> Debug for NodeConnection<I, W>
impl<I: Debug + NodeId, W: Debug + NodeWeight> Debug for NodeConnection<I, W>
Source§impl<I: NodeId, W: NodeWeight> Default for NodeConnection<I, W>
impl<I: NodeId, W: NodeWeight> Default for NodeConnection<I, W>
impl<I: NodeId, W: NodeWeight> Eq for NodeConnection<I, W>
Source§impl<I: NodeId, W: NodeWeight> Ord for NodeConnection<I, W>
impl<I: NodeId, W: NodeWeight> Ord for NodeConnection<I, W>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<I: NodeId, W: NodeWeight> PartialEq for NodeConnection<I, W>
impl<I: NodeId, W: NodeWeight> PartialEq for NodeConnection<I, W>
Source§impl<I: NodeId, W: NodeWeight> PartialOrd for NodeConnection<I, W>
impl<I: NodeId, W: NodeWeight> PartialOrd for NodeConnection<I, W>
Auto Trait Implementations§
impl<I, W> Freeze for NodeConnection<I, W>
impl<I, W> RefUnwindSafe for NodeConnection<I, W>where
I: RefUnwindSafe,
W: RefUnwindSafe,
impl<I, W> Send for NodeConnection<I, W>
impl<I, W> Sync for NodeConnection<I, W>
impl<I, W> Unpin for NodeConnection<I, W>
impl<I, W> UnsafeUnpin for NodeConnection<I, W>where
I: UnsafeUnpin,
W: UnsafeUnpin,
impl<I, W> UnwindSafe for NodeConnection<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