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
use crate::{Bin, Boo, SBin, SStr, Str};

/// Borrowed-or-owned `Bin`.
pub type BooBin<'a> = Boo<'a, [u8], Bin>;
/// Borrowed-or-owned `SBin`.
pub type BooSBin<'a> = Boo<'a, [u8], SBin>;
/// Borrowed-or-owned `Str`.
pub type BooStr<'a> = Boo<'a, str, Str>;
/// Borrowed-or-owned `SStr`.
pub type BooSStr<'a> = Boo<'a, str, SStr>;