pub struct NodeCost<Node, Cost> {
pub node: Node,
pub cost: Cost,
}Expand description
A node with an associated cost.
Only the cost is used for comparison.
Fields§
§node: Node§cost: CostImplementations§
Trait Implementations§
Source§impl<Node, Cost> Ord for NodeCost<Node, Cost>where
Cost: Ord,
impl<Node, Cost> Ord for NodeCost<Node, Cost>where
Cost: Ord,
Source§impl<Node, Cost> PartialOrd for NodeCost<Node, Cost>where
Cost: PartialOrd,
impl<Node, Cost> PartialOrd for NodeCost<Node, Cost>where
Cost: PartialOrd,
impl<Node: Copy, Cost: Copy> Copy for NodeCost<Node, Cost>
impl<Node, Cost> Eq for NodeCost<Node, Cost>where
Cost: Eq,
Auto Trait Implementations§
impl<Node, Cost> Freeze for NodeCost<Node, Cost>
impl<Node, Cost> RefUnwindSafe for NodeCost<Node, Cost>where
Node: RefUnwindSafe,
Cost: RefUnwindSafe,
impl<Node, Cost> Send for NodeCost<Node, Cost>
impl<Node, Cost> Sync for NodeCost<Node, Cost>
impl<Node, Cost> Unpin for NodeCost<Node, Cost>
impl<Node, Cost> UnsafeUnpin for NodeCost<Node, Cost>where
Node: UnsafeUnpin,
Cost: UnsafeUnpin,
impl<Node, Cost> UnwindSafe for NodeCost<Node, Cost>where
Node: UnwindSafe,
Cost: 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