pub struct Bin<'a> { /* private fields */ }
Expand description

A container that holds values for later destruction.

It is automatically cleared when it is dropped.

Implementations

Create a new bin.

Add a value to the bin.

This may drop the value immediately, but will attempt to store it so that it can be dropped later.

Clear the bin, dropping all values that have been previously added to it.

This may not clear the bin immediately if another thread is currently adding a value to the bin.

Get the size of the bin in bytes.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.