[][src]Struct compress::bwt::Radix

pub struct Radix {
    pub freq: [usize; 257],
}

Radix sorting primitive

Fields

freq: [usize; 257]

number of occurancies (frequency) per symbox

Implementations

impl Radix[src]

pub fn new() -> Radix[src]

create Radix sort instance

pub fn reset(&mut self)[src]

reset counters allows the struct to be re-used

pub fn gather(&mut self, input: &[Symbol])[src]

count elements in the input

pub fn accumulate(&mut self)[src]

build offset table

pub fn place(&mut self, b: Symbol) -> usize[src]

return next byte position, advance it internally

pub fn shift(&mut self)[src]

shift frequences to the left allows the offsets to be re-used after all positions are obtained

Auto Trait Implementations

impl RefUnwindSafe for Radix

impl Send for Radix

impl Sync for Radix

impl Unpin for Radix

impl UnwindSafe for Radix

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]