Struct recycler::TrashRecycler [] [src]

pub struct TrashRecycler<Item> {
    // some fields omitted
}

A "recycler" that doesn't recycle anything, instead just dropping anything it is given. This is particularly useful for primitive types such as i32 that do not have Drop implementations.

Trait Implementations

impl<Item> Default for TrashRecycler<Item>
[src]

fn default() -> Self

Returns the "default value" for a type. Read more

impl<Item> Recycler for TrashRecycler<Item>
[src]

type Item = Item

fn recycle(&mut self, _item: Self::Item)