Skip to main content

Table

Trait Table 

Source
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§

Required Associated Types§

Required Methods§

Source

fn view<'a>(buf: &'a [u8], table_idx: usize) -> Self::View<'a>

Source

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.

Implementors§