pub struct WeightStatistics<E: EdgeWeight> {
pub min_weight: E,
pub max_weight: E,
pub total_weight: E,
pub edge_count: usize,
}
Expand description
Weight statistics for a graph
Fields§
§min_weight: E
Minimum weight in the graph
max_weight: E
Maximum weight in the graph
total_weight: E
Sum of all weights
edge_count: usize
Number of edges
Trait Implementations§
Source§impl<E: Clone + EdgeWeight> Clone for WeightStatistics<E>
impl<E: Clone + EdgeWeight> Clone for WeightStatistics<E>
Source§fn clone(&self) -> WeightStatistics<E>
fn clone(&self) -> WeightStatistics<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<E> Freeze for WeightStatistics<E>where
E: Freeze,
impl<E> RefUnwindSafe for WeightStatistics<E>where
E: RefUnwindSafe,
impl<E> Send for WeightStatistics<E>
impl<E> Sync for WeightStatistics<E>
impl<E> Unpin for WeightStatistics<E>where
E: Unpin,
impl<E> UnwindSafe for WeightStatistics<E>where
E: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more