pub trait Table: Default {
type VTableTemplate;
type View<'a>;
const VTABLE_TEMPLATE: Self::VTableTemplate;
// Required methods
fn view<'a>(buf: &'a [u8], table_idx: usize) -> Self::View<'a>;
fn as_buffer(&self) -> impl Buffer;
}Required Associated Constants§
const VTABLE_TEMPLATE: Self::VTableTemplate
Required Associated Types§
type VTableTemplate
type View<'a>
Required Methods§
fn view<'a>(buf: &'a [u8], table_idx: usize) -> Self::View<'a>
fn as_buffer(&self) -> impl Buffer
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.