pub struct Buffer<const SIZE: usize> {
pub(crate) length: u8,
pub(crate) bytes: [u8; SIZE],
}Expand description
Array-backed buffer for storing BER computed at compile-time.
Fields§
§length: u8Length in bytes
bytes: [u8; SIZE]Array containing BER/DER-serialized bytes (no header)
Implementations§
Trait Implementations§
Source§impl<const SIZE: usize> Ord for Buffer<SIZE>
impl<const SIZE: usize> Ord for Buffer<SIZE>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<const SIZE: usize> PartialOrd for Buffer<SIZE>
impl<const SIZE: usize> PartialOrd for Buffer<SIZE>
impl<const SIZE: usize> Copy for Buffer<SIZE>
impl<const SIZE: usize> Eq for Buffer<SIZE>
impl<const SIZE: usize> StructuralPartialEq for Buffer<SIZE>
Auto Trait Implementations§
impl<const SIZE: usize> Freeze for Buffer<SIZE>
impl<const SIZE: usize> RefUnwindSafe for Buffer<SIZE>
impl<const SIZE: usize> Send for Buffer<SIZE>
impl<const SIZE: usize> Sync for Buffer<SIZE>
impl<const SIZE: usize> Unpin for Buffer<SIZE>
impl<const SIZE: usize> UnsafeUnpin for Buffer<SIZE>
impl<const SIZE: usize> UnwindSafe for Buffer<SIZE>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more