[−][src]Struct drop_bin::Bin
A bin.
It is cleared when it is dropped.
Implementations
impl<'a> Bin<'a>[src]
#[must_use]pub const fn new() -> Self[src]
Create a new bin.
pub fn add<T: 'a>(&self, value: T)[src]
Add a value to the bin.
pub fn clear(&self)[src]
Clear the bin.
This may not clear the bin immediately if another thread is currently adding a value to the bin.
#[must_use]pub fn size(&self) -> usize[src]
Get the size of the bin in bytes.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Bin<'a>
impl<'a> Send for Bin<'a>
impl<'a> Sync for Bin<'a>
impl<'a> Unpin for Bin<'a>
impl<'a> !UnwindSafe for Bin<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,