[−][src]Struct lockfree_object_pool::LinearReusable
Wrapper over T used by LinearObjectPool.
Access is allowed with std::ops::Deref or std::ops::DerefMut
Example
use lockfree_object_pool::LinearObjectPool; let pool = LinearObjectPool::<u32>::new( || Default::default(), |v| { *v = 0; } ); let mut item = pool.pull(); *item = 5; let work = *item * 5;
Trait Implementations
impl<'a, T> Deref for LinearReusable<'a, T>[src]
impl<'a, T> DerefMut for LinearReusable<'a, T>[src]
impl<'a, T> Drop for LinearReusable<'a, T>[src]
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for LinearReusable<'a, T>[src]
impl<'a, T> Send for LinearReusable<'a, T> where
T: Sync, [src]
T: Sync,
impl<'a, T> Sync for LinearReusable<'a, T> where
T: Sync, [src]
T: Sync,
impl<'a, T> Unpin for LinearReusable<'a, T>[src]
impl<'a, T> !UnwindSafe for LinearReusable<'a, T>[src]
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>,