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) -> Buffer<SIZE>
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: &Buffer<SIZE>) -> Ordering
impl<const SIZE: usize> PartialEq for Buffer<SIZE>
fn eq(&self, other: &Buffer<SIZE>) -> bool
impl<const SIZE: usize> PartialOrd for Buffer<SIZE>
fn partial_cmp(&self, other: &Buffer<SIZE>) -> Option<Ordering>
impl<const SIZE: usize> StructuralPartialEq for Buffer<SIZE>
Auto Trait Implementations
impl<const SIZE: usize> Freeze for Buffer<SIZE>
where
[u8; SIZE]: Freeze,
impl<const SIZE: usize> RefUnwindSafe for Buffer<SIZE>
where
[u8; SIZE]: RefUnwindSafe,
impl<const SIZE: usize> Send for Buffer<SIZE>
where
[u8; SIZE]: Send,
impl<const SIZE: usize> Sync for Buffer<SIZE>
where
[u8; SIZE]: Sync,
impl<const SIZE: usize> Unpin for Buffer<SIZE>
where
[u8; SIZE]: Unpin,
impl<const SIZE: usize> UnsafeUnpin for Buffer<SIZE>
where
[u8; SIZE]: UnsafeUnpin,
impl<const SIZE: usize> UnwindSafe for Buffer<SIZE>
where
[u8; SIZE]: UnwindSafe,
Blanket Implementations
impl<T> Any for Buffer<SIZE>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Buffer<SIZE>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Buffer<SIZE>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Buffer<SIZE>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Buffer<SIZE>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for Buffer<SIZE>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Buffer<SIZE>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Buffer<SIZE>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>