[][src]Trait abin::GivenVecConfig

pub trait GivenVecConfig {
    type TExcessShrink: ExcessShrink;
    fn optimization() -> GivenVecOptimization;
}

Custom configuration used for BinFactory::from_given_vec / BinFactory::from_given_vec_with_config).

Associated Types

type TExcessShrink: ExcessShrink

Shrink the given vector if there's too much excess? (excess = Vec::capacity() - Vec::len()).

Loading content...

Required methods

fn optimization() -> GivenVecOptimization

Optimization hint.

Loading content...

Implementors

Loading content...