[−][src]Struct compress::bwt::Radix
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,