Trait fera::graph::ext::GraphsVecExt

source ·
pub trait GraphsVecExt<T> {
    fn sorted_by_prop<P, K>(self, prop: P) -> Self
    where
        P: PropGet<K>,
        &'a T: for<'a> IntoOwned<K>,
        <P as PropGet<K>>::Output: Ord
; fn sorted_unstable_by_prop<P, K>(self, prop: P) -> Self
    where
        P: PropGet<K>,
        &'a T: for<'a> IntoOwned<K>,
        <P as PropGet<K>>::Output: Ord
; }
Expand description

Extension trait for vectors.

See the module documentation for examples.

Required Methods§

Returns a vector sorted by a property.

This functions calls GraphsSliceExt::sort_by_prop.

Returns a vector sorted by a property.

This functions calls GraphsSliceExt::sort_unstable_by_prop.

Implementations on Foreign Types§

Implementors§