pub struct AllocatedToken(/* private fields */);
Expand description
Dummy struct which can be used with smart-pointer-based token implementations.
Smart-pointer requires a non-zero-sized type parameter to be used as token.
Use it if, like me, you don’t like finding names for dummy objects;
Box<AllocatedToken>
is still better than Box<u8>
.
Trait Implementations§
Source§impl Debug for AllocatedToken
impl Debug for AllocatedToken
Source§impl Default for AllocatedToken
impl Default for AllocatedToken
Source§fn default() -> AllocatedToken
fn default() -> AllocatedToken
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AllocatedToken
impl RefUnwindSafe for AllocatedToken
impl Send for AllocatedToken
impl Sync for AllocatedToken
impl Unpin for AllocatedToken
impl UnwindSafe for AllocatedToken
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