SyncPoolContent

Trait SyncPoolContent 

Source
pub trait SyncPoolContent: Sized {
    type Ctx: Debug;

    // Required methods
    fn new(ctx: &Self::Ctx) -> Self;
    fn reset(&mut self, ctx: &Self::Ctx);
}

Required Associated Types§

Required Methods§

Source

fn new(ctx: &Self::Ctx) -> Self

Source

fn reset(&mut self, ctx: &Self::Ctx)

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.

Implementations on Foreign Types§

Source§

impl<T> SyncPoolContent for Vec<T>

Source§

type Ctx = VecPoolCtx

Source§

fn new(ctx: &Self::Ctx) -> Self

Source§

fn reset(&mut self, ctx: &Self::Ctx)

Implementors§