Struct gdnative_core::object::ownership::Unique
source · pub struct Unique(_);
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 PartialEq<Unique> for Unique
impl PartialEq<Unique> for Unique
source§impl PartialOrd<Unique> for Unique
impl PartialOrd<Unique> for Unique
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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 StructuralEq for Unique
impl StructuralPartialEq for Unique
Auto Trait Implementations§
impl RefUnwindSafe for Unique
impl !Sync for Unique
impl Unpin for Unique
impl UnwindSafe for Unique
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.