pub struct Unique(/* private fields */);
Expand description
Marker that indicates that a value currently only has a single unique reference.
Using this marker causes the type to be !Sync
.
Trait Implementations§
Source§impl Ord for Unique
impl Ord for Unique
Source§impl PartialOrd for Unique
impl PartialOrd for Unique
impl Copy for Unique
impl Eq for Unique
impl LocalThreadOwnership for Unique
impl Ownership for Unique
impl SafeAsRaw<ManuallyManaged, Unique> for RefImplBound
impl SafeDeref<ManuallyManaged, Unique> for RefImplBound
impl Send for Unique
impl StructuralPartialEq for Unique
Auto Trait Implementations§
impl Freeze for Unique
impl RefUnwindSafe for Unique
impl !Sync for Unique
impl Unpin for Unique
impl UnwindSafe for Unique
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.