Struct Buffer
pub struct Buffer<const SIZE: usize> { /* private fields */ }
Array-backed buffer for storing BER computed at compile-time.
Implementations
impl<const SIZE: usize> Buffer<SIZE>
const fn as_bytes(&self) -> &[u8]Borrow the inner byte slice.
const fn len(&self) -> usizeGet the length of the BER message.
const fn eq(&self, rhs: &Self) -> boolConst comparison of two buffers.
Trait Implementations
impl<const SIZE: usize> AsRef<[u8]> for Buffer<SIZE>
fn as_ref(&self) -> &[u8]
impl<const SIZE: usize> Clone for Buffer<SIZE>
fn clone(&self) -> Self
impl<const SIZE: usize> Copy for Buffer<SIZE>
impl<const SIZE: usize> Eq for Buffer<SIZE>
impl<const SIZE: usize> Hash for Buffer<SIZE>
fn hash<__H: Hasher>(&self, state: &mut __H)
impl<const SIZE: usize> Ord for Buffer<SIZE>
fn cmp(&self, other: &Self) -> Ordering
impl<const SIZE: usize> PartialEq for Buffer<SIZE>
fn eq(&self, other: &Self) -> bool
impl<const SIZE: usize> PartialOrd for Buffer<SIZE>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>