Trait Reuse

Source
pub trait Reuse {
    // Required method
    fn reuse(&mut self, trim: usize) -> bool;
}
Expand description

A trait that prepares an item to be returned to the pool. For example clearing it. true is returned if the item should be returned to the pool, false if it should be dropped.

Required Methods§

Source

fn reuse(&mut self, trim: usize) -> bool

Implementations on Foreign Types§

Source§

impl Reuse for VecDeque<u8>

Source§

fn reuse(&mut self, val: usize) -> bool

Source§

impl Reuse for Vec<u8>

Source§

fn reuse(&mut self, trim: usize) -> bool

Implementors§