pub struct StaticBufferRef<M>where
M: StaticVarApi,{ /* private fields */ }
Implementations§
Source§impl<M> StaticBufferRef<M>where
M: StaticVarApi,
impl<M> StaticBufferRef<M>where
M: StaticVarApi,
Source§impl<M: StaticVarApi> StaticBufferRef<M>
impl<M: StaticVarApi> StaticBufferRef<M>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn capacity(&self) -> usize
pub fn remaining_capacity(&self) -> usize
pub fn with_buffer_contents<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
pub fn with_buffer_contents_mut<R, F: FnOnce(&mut [u8]) -> R>(&self, f: F) -> R
pub fn contents_eq(&self, bytes: &[u8]) -> bool
pub fn load_slice( &self, starting_position: usize, dest: &mut [u8], ) -> Result<(), InvalidSliceError>
pub fn try_extend_from_slice(&mut self, bytes: &[u8]) -> bool
pub fn try_extend_from_copy_bytes<F: FnOnce(&mut [u8])>( &mut self, len: usize, copy_bytes: F, ) -> bool
Trait Implementations§
Source§impl<M: StaticVarApi> Drop for StaticBufferRef<M>
impl<M: StaticVarApi> Drop for StaticBufferRef<M>
Auto Trait Implementations§
impl<M> Freeze for StaticBufferRef<M>
impl<M> RefUnwindSafe for StaticBufferRef<M>where
M: RefUnwindSafe,
impl<M> Send for StaticBufferRef<M>where
M: Send,
impl<M> Sync for StaticBufferRef<M>where
M: Sync,
impl<M> Unpin for StaticBufferRef<M>where
M: Unpin,
impl<M> UnwindSafe for StaticBufferRef<M>where
M: UnwindSafe,
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