cfg_traits

Trait Func

Source
pub trait Func {
    type Block;
    type Blocks: Arena<Self::Block, Output: Block<Self>>;
    type BRef<'a>: Deref<Target = Self::Blocks>
       where Self: 'a;
    type BMut<'a>: DerefMut<Target = Self::Blocks>
       where Self: 'a;

    // Required methods
    fn blocks<'a>(&'a self) -> Self::BRef<'a>;
    fn blocks_mut<'a>(&'a mut self) -> Self::BMut<'a>;
    fn entry(&self) -> Self::Block;
}

Required Associated Types§

Source

type Block

Source

type Blocks: Arena<Self::Block, Output: Block<Self>>

Source

type BRef<'a>: Deref<Target = Self::Blocks> where Self: 'a

Source

type BMut<'a>: DerefMut<Target = Self::Blocks> where Self: 'a

Required Methods§

Source

fn blocks<'a>(&'a self) -> Self::BRef<'a>

Source

fn blocks_mut<'a>(&'a mut self) -> Self::BMut<'a>

Source

fn entry(&self) -> Self::Block

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§