Struct bio::data_structures::smallints::SmallInts [] [src]

pub struct SmallInts<F: Integer + Bounded + NumCast + Copy, B: Integer + NumCast + Copy> { /* fields omitted */ }

Data structure for storing a sequence of small integers with few big ones space efficiently while supporting classical vector operations.

Methods

impl<S: Integer + Bounded + NumCast + Copy, B: Integer + NumCast + Copy> SmallInts<S, B>
[src]

Create a new instance.

Create a new instance with a given capacity.

Create a new instance containing n times the integer v (and v is expected to be small).

Return the integer at position i.

Append v to the sequence. This will determine whether v is big or small and store it accordingly.

Set value of position i to v. This will determine whether v is big or small and store it accordingly.

Iterate over sequence. Values will be returned in the big integer type (B).

Decompress into a normal vector of big integers (type B).

Length of the sequence.

is the sequence empty?