A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.rs/encase/latest/encase/internal/trait.BufferRef.html below:

BufferRef in encase::internal - Rust

pub trait BufferRef {
    // Required methods
    fn len(&self) -> usize;
    fn read<const N: usize>(&self, offset: usize) -> &[u8; N];
    fn read_slice(&self, offset: usize, val: &mut [u8]);
}
Required Methods§ Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§ Source§ impl BufferRef for Vec<u8> Source§ impl BufferRef for [u8] Source§ impl<T: ?Sized + BufferRef> BufferRef for &T Source§ impl<T: ?Sized + BufferRef> BufferRef for &mut T Source§ impl<T: ?Sized + BufferRef> BufferRef for Box<T> Source§ impl<T: ?Sized + BufferRef> BufferRef for Rc<T> Source§ impl<T: ?Sized + BufferRef> BufferRef for Arc<T> Source§ impl<const LEN: usize> BufferRef for [u8; LEN] Implementors§

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4