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