abin 0.1.6

A library for working with binaries and strings. The library tries to avoid heap-allocations / memory-copy whenever possible by automatically choosing a reasonable strategy: stack for small binaries; static-lifetime-binary or reference-counting.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::{DefaultExcessShrink, GivenVecConfig, GivenVecOptimization};

pub struct DefaultGivenVecConfig;

impl GivenVecConfig for DefaultGivenVecConfig {
    type TExcessShrink = DefaultExcessShrink;

    fn optimization() -> GivenVecOptimization {
        GivenVecOptimization::Operations
    }
}