pub struct SignedPath<Node, Cost = i64> { /* private fields */ }Implementations§
Source§impl<Node, Cost> SignedPath<Node, Cost>
impl<Node, Cost> SignedPath<Node, Cost>
pub fn nodes(&self) -> &[Node]
pub const fn total_cost(&self) -> Costwhere
Cost: Copy,
pub fn into_nodes(self) -> Vec<Node>
Trait Implementations§
Source§impl<Node: Clone, Cost: Clone> Clone for SignedPath<Node, Cost>
impl<Node: Clone, Cost: Clone> Clone for SignedPath<Node, Cost>
Source§fn clone(&self) -> SignedPath<Node, Cost>
fn clone(&self) -> SignedPath<Node, Cost>
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 moreimpl<Node: Eq, Cost: Eq> Eq for SignedPath<Node, Cost>
impl<Node: PartialEq, Cost: PartialEq> StructuralPartialEq for SignedPath<Node, Cost>
Auto Trait Implementations§
impl<Node, Cost> Freeze for SignedPath<Node, Cost>where
Cost: Freeze,
impl<Node, Cost> RefUnwindSafe for SignedPath<Node, Cost>where
Cost: RefUnwindSafe,
Node: RefUnwindSafe,
impl<Node, Cost> Send for SignedPath<Node, Cost>
impl<Node, Cost> Sync for SignedPath<Node, Cost>
impl<Node, Cost> Unpin for SignedPath<Node, Cost>
impl<Node, Cost> UnsafeUnpin for SignedPath<Node, Cost>where
Cost: UnsafeUnpin,
impl<Node, Cost> UnwindSafe for SignedPath<Node, Cost>where
Cost: UnwindSafe,
Node: 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