Struct wavelet_matrix::WaveletMatrix [] [src]

pub struct WaveletMatrix { /* fields omitted */ }

WaveletMatrix supports various near-O(1) queries on the sequence of integers.

Methods

impl WaveletMatrix
[src]

[src]

Create a new WaveletMatrix struct from a input Vec.

[src]

Returns the length of T

[src]

Returns the value T[pos]

[src]

Returns the number of the element which satisfies e == value included in A[pos_range]

[src]

Returns the number of the element which satisfies e < value included in A[pos_range]

[src]

Returns the number of the element which satisfies e > value included in A[pos_range]

[src]

Returns the number of the element which satisfies (e >> ignore_bit) == (val >> ignore_bit) included in A[pos_range]

[src]

Returns the number of the element which satisfies val_range.start <= e < val_range.end included in A[pos_range]

[src]

Returns the number of val found in T[0..pos].

The range specified is half open, i.e. [0, pos).

[src]

Return the position of (rank+1)-th val in T.

If no match has been found, it returns the length of self.

Trait Implementations

impl Debug for WaveletMatrix
[src]

[src]

Formats the value using the given formatter.

impl SpaceUsage for WaveletMatrix
[src]

[src]

Is the size of this type known statically? Read more

[src]

Calculates the heap portion of the size of an object. Read more

[src]

Computes the size of the receiver in bytes. Read more

[src]

Calculates the stack portion of the size of this type. Read more