#![cfg_attr(
feature = "alloc",
doc = r"## Alloc Encodables (requires the `alloc` OR `std` features)
These types are supported when the `alloc` or `std` feature is enabled.
| Type | Description |
|------|-------------|
| [`Vec<u8>`] | Encodes a byte vector as a contiguous sequence of bytes |
| [`String`] | Encodes a heap-allocated UTF-8 string |
| [`CString`](std::ffi::CString) | Encodes a C-style string including the null terminator (`\0`) |
| [`Box<T>`] | Encodes the value pointed to by a `Box`, as if it were directly encoded |
"
)]
#[cfg_attr(
feature = "arrayvec",
doc = r"## ArrayVec Encodables (requires the `arrayvec` feature)
These types are supported when the `arrayvec` feature is enabled.
| Type | Description |
|------|-------------|
| [`ArrayVec<T, N>`] | Encodes a fixed-size array of bytes as a contiguous sequence of bytes |
| [`ArrayString<N>`] | Encodes a fixed-size string as a contiguous sequence of bytes |
"
)]
#[cfg_attr(
feature = "bytes",
doc = r"## Bytes Encodables (requires the `bytes` feature)
These types are supported when the `bytes` feature is enabled.
| Type | Description |
|------|-------------|
| [`Bytes`] | Encodes a `Bytes` object as a contiguous sequence of bytes |
| [`BytesMut`] | Encodes a `BytesMut` object as a contiguous sequence of bytes |
"
)]
mod be;
mod cond;
mod from_error;
mod iter;
mod le;
mod length_prefix;
mod separated;
pub use be::BE;
pub use cond::Cond;
pub use from_error::FromError;
pub use iter::Iter;
pub use le::LE;
pub use length_prefix::LengthPrefix;
pub use separated::Separated;