embassy-nrf

Crates

git

Versions

nrf9151-s

Flavors

Skip to main content

Buffer

Trait Buffer 

Source
pub trait Buffer:
    Copy
    + AsRef<[u8]>
    + AsMut<[u8]> {
    const ZERO: Self;
}
Expand description

Fixed-size byte buffer. Implemented for [u8; N].

Used for the digest type of a HashAlgorithm.

Required Associated Constants§

Source

const ZERO: Self

The all-zero buffer.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<const N: usize> Buffer for [u8; N]

Source§

const ZERO: Self

Implementors§