Struct sets::RankedSet[][src]

pub struct RankedSet<T> {
    pub ascending: bool,
    pub v: Vec<T>,
    pub i: Vec<usize>,
}
Expand description

Struct holding a borrowed unordered set and a vector of its ranks (ascending or descending).

Fields

ascending: boolv: Vec<T>i: Vec<usize>

Implementations

Initiliser, ranks an unordered slice

Initiliser, ranks an unordered Set

From Oredered is not often needed, as the index will be trivial

Converts sort index to ranks

Trait Implementations

Display implemented for struct IndexedSet.

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.