pub trait FixedLenBuf: Sized + AsOutBytes {
    // Required method
    fn uninit() -> Self;
}
Expand description

A buffer with compile-time-known length.

This is essentially Default + AsOutBytes but supports lengths 1.41 doesn’t.

Required Methods§

source

fn uninit() -> Self

Creates an uninitialized buffer.

The current implementtions initialize the buffer with zeroes but it should be treated a uninitialized anyway.

Implementations on Foreign Types§

source§

impl FixedLenBuf for [u8; 512]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 28]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 6]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 18]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 128]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 64]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 10]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 8]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 4]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 2048]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 32]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 8192]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 26]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 66]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 4096]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 22]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 130]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 40]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 14]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 24]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 1024]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 256]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 16]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 12]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 2]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 20]

source§

fn uninit() -> Self

source§

impl FixedLenBuf for [u8; 30]

source§

fn uninit() -> Self

Implementors§