Crate stack_buf[][src]

Vector-like facade for arrays allocated entirely on the stack.

Shallow wrapper around an underlying [T; N], which panics if the array bounds are exceeded.

Optional features

std

Enabled by default. Use std library; disable to use no_std instead.

str

When this optional dependency is enabled, StackStr is available.

serde

When this optional dependency is enabled, StackVec and StackStr implement the serde::Serialize and serde::Deserialize traits.

Rust Version

This version of stack-buf requires Rust 1.51 or later.

Macros

stack_vec

Creates a StackVec containing the arguments.

Structs

Drain

A draining iterator for StackVec<T, N>.

FromUtf8Errorstr

A possible error value when converting a StackStr from a UTF-8 byte vector.

IntoIter

An iterator that consumes a StackVec and yields its items by value.

StackStrstr

A string with a fixed capacity and stored on the stack.

StackVec

A Vec-like container that stores elements on the stack.