pub struct StaticBuffer<const N: usize> { /* private fields */ }Implementations§
Source§impl<const N: usize> StaticBuffer<N>
impl<const N: usize> StaticBuffer<N>
pub const fn new() -> Self
pub fn new_from_slice(data: &[u8]) -> Self
pub fn reset(&mut self)
pub fn resize(&mut self, len: usize)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn chain_write(&mut self, data: &[u8]) -> Result<&mut Self, RnsError>
pub fn finalize(self) -> Self
pub fn safe_write(&mut self, data: &[u8]) -> usize
pub fn chain_safe_write(&mut self, data: &[u8]) -> &mut Self
pub fn write(&mut self, data: &[u8]) -> Result<usize, RnsError>
pub fn rotate_left(&mut self, mid: usize) -> Result<usize, RnsError>
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
pub fn accuire_buf(&mut self, len: usize) -> &mut [u8] ⓘ
pub fn accuire_buf_max(&mut self) -> &mut [u8] ⓘ
Trait Implementations§
Source§impl<const N: usize> Clone for StaticBuffer<N>
impl<const N: usize> Clone for StaticBuffer<N>
Source§fn clone(&self) -> StaticBuffer<N>
fn clone(&self) -> StaticBuffer<N>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<const N: usize> Debug for StaticBuffer<N>
impl<const N: usize> Debug for StaticBuffer<N>
Source§impl<const N: usize> Default for StaticBuffer<N>
impl<const N: usize> Default for StaticBuffer<N>
Source§impl<const N: usize> Display for StaticBuffer<N>
impl<const N: usize> Display for StaticBuffer<N>
Source§impl<const N: usize> PartialEq for StaticBuffer<N>
impl<const N: usize> PartialEq for StaticBuffer<N>
impl<const N: usize> Copy for StaticBuffer<N>
impl<const N: usize> Eq for StaticBuffer<N>
impl<const N: usize> StructuralPartialEq for StaticBuffer<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for StaticBuffer<N>
impl<const N: usize> RefUnwindSafe for StaticBuffer<N>
impl<const N: usize> Send for StaticBuffer<N>
impl<const N: usize> Sync for StaticBuffer<N>
impl<const N: usize> Unpin for StaticBuffer<N>
impl<const N: usize> UnsafeUnpin for StaticBuffer<N>
impl<const N: usize> UnwindSafe for StaticBuffer<N>
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