Expand description

Variable length octet sequences.

This crate provides a set of basic traits that allow defining types that are generic over a variable length sequence of octets (or, vulgo: bytes). It implements these traits for most commonly used types of such sequences and provides a array-backed type for use in a no-std environment.

These traits are all defined – and explained en detail – in the [traits] module. They are, however, all re-exported here at the crate root.

In addition, the crate provides a helper type to extract data that has been encoded into an octet sequences. This has been dubbed parsing and is provided via the [parse] module.

Re-exports

pub use self::traits::*;
pub use self::parse::*;

Modules

Reading data from an octet sequence.

Serde support.

Strings atop octet sequences.

Variable length octet sequences.