Trait Ctx

Source
pub trait Ctx {
    // Required method
    fn base(&self) -> *const u8;

    // Provided methods
    fn ctrl<'a>(&self, buckets: usize) -> &'a [Tag] { ... }
    fn bucket<'a, T>(&self, index: usize) -> &'a T { ... }
}

Required Methods§

Source

fn base(&self) -> *const u8

Provided Methods§

Source

fn ctrl<'a>(&self, buckets: usize) -> &'a [Tag]

Source

fn bucket<'a, T>(&self, index: usize) -> &'a T

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§

Source§

impl Ctx for CarryCtx<'_>

Source§

impl Ctx for CarryCtxMut<'_>