brotli::enc::backward_references::hash_to_binary_tree

Trait Allocable

Source
pub trait Allocable<T: Copy, AllocT: Allocator<T>> {
    // Required methods
    fn new(m: &mut AllocT, init: T) -> Self;
    fn new_uninit(m: &mut AllocT) -> Self;
    fn free(&mut self, m: &mut AllocT);
}

Required Methods§

Source

fn new(m: &mut AllocT, init: T) -> Self

Source

fn new_uninit(m: &mut AllocT) -> Self

Source

fn free(&mut self, m: &mut AllocT)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<AllocU32: Allocator<u32>> Allocable<u32, AllocU32> for H10Buckets<AllocU32>