pub struct Beefeater<T: Copy>(/* private fields */);
Expand description
A generic guard around any type that implements Copy, which allows an object to be safely shared between threads.
Implementations§
Trait Implementations§
Source§impl<Lhs, Rhs> AddAssign<Rhs> for Beefeater<Lhs>
impl<Lhs, Rhs> AddAssign<Rhs> for Beefeater<Lhs>
Source§fn add_assign(&self, val: Rhs)
fn add_assign(&self, val: Rhs)
Add to the current value, storing the result.
Source§impl<Lhs, Rhs> SubAssign<Rhs> for Beefeater<Lhs>
impl<Lhs, Rhs> SubAssign<Rhs> for Beefeater<Lhs>
Source§fn sub_assign(&self, val: Rhs)
fn sub_assign(&self, val: Rhs)
Subtract from the current value, storing the result.
impl<T: Copy + Send> Sync for Beefeater<T>
Auto Trait Implementations§
impl<T> !Freeze for Beefeater<T>
impl<T> RefUnwindSafe for Beefeater<T>
impl<T> Send for Beefeater<T>where
T: Send,
impl<T> Unpin for Beefeater<T>where
T: Unpin,
impl<T> UnwindSafe for Beefeater<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more