Trait fera_graph::ext::GraphsVecExt
[−]
[src]
pub trait GraphsVecExt<T> { fn sorted_by_prop<P, K>(self, prop: P) -> Self
where
P: PropGet<K>,
&'a T: IntoOwned<K>,
P::Output: Ord; fn sorted_unstable_by_prop<P, K>(self, prop: P) -> Self
where
P: PropGet<K>,
&'a T: IntoOwned<K>,
P::Output: Ord; }
Extension trait for vectors.
See the module documentation for examples.
Required Methods
fn sorted_by_prop<P, K>(self, prop: P) -> Self where
P: PropGet<K>,
&'a T: IntoOwned<K>,
P::Output: Ord,
P: PropGet<K>,
&'a T: IntoOwned<K>,
P::Output: Ord,
Returns a vector sorted by a property.
This functions calls GraphsSliceExt::sort_by_prop
.
fn sorted_unstable_by_prop<P, K>(self, prop: P) -> Self where
P: PropGet<K>,
&'a T: IntoOwned<K>,
P::Output: Ord,
P: PropGet<K>,
&'a T: IntoOwned<K>,
P::Output: Ord,
Returns a vector sorted by a property.
This functions calls GraphsSliceExt::sort_unstable_by_prop
.