Crate bstring

Source
Expand description

Byte string formatting and manipulation

This crate provides the types bstr and BString, which implement str-like functions for byte string values with unknown encoding.

These types are intended to assist when implementing text-based protocols with no set character encoding.

The bstring_macros crate provides formatting macros, similar to those found in the standard library for String values.

Re-exports§

pub use bstring::bstr;
pub use bstring::BString;
pub use from_bstr::FromBStr;

Modules§

bfmt
Byte string formatting
bstring
Provides bstr and BString byte string types
from_bstr
Provides the FromBStr trait, used to parse values from &bstr
pattern
The byte string Pattern API.