pub enum PathWeight {
Unweighted,
Weighted,
}Expand description
Whether shortest paths use edge weights.
Variants§
Unweighted
Every edge costs one.
Weighted
Use the graph’s selected weight, defaulting missing weights to one.
Trait Implementations§
Source§impl Clone for PathWeight
impl Clone for PathWeight
Source§fn clone(&self) -> PathWeight
fn clone(&self) -> PathWeight
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 Copy for PathWeight
Source§impl Debug for PathWeight
impl Debug for PathWeight
Source§impl<'de> Deserialize<'de> for PathWeight
impl<'de> Deserialize<'de> for PathWeight
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PathWeight
Source§impl PartialEq for PathWeight
impl PartialEq for PathWeight
Source§impl Serialize for PathWeight
impl Serialize for PathWeight
impl StructuralPartialEq for PathWeight
Auto Trait Implementations§
impl Freeze for PathWeight
impl RefUnwindSafe for PathWeight
impl Send for PathWeight
impl Sync for PathWeight
impl Unpin for PathWeight
impl UnsafeUnpin for PathWeight
impl UnwindSafe for PathWeight
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