Struct gdnative::object::ownership::ThreadLocal
source · pub struct ThreadLocal(_);
Expand description
Marker that indicates that a value can currently only be shared in the same thread.
Using this marker causes the type to be !Send + !Sync
.
Trait Implementations§
source§impl Clone for ThreadLocal
impl Clone for ThreadLocal
source§fn clone(&self) -> ThreadLocal
fn clone(&self) -> ThreadLocal
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ThreadLocal
impl Debug for ThreadLocal
source§impl Default for ThreadLocal
impl Default for ThreadLocal
source§fn default() -> ThreadLocal
fn default() -> ThreadLocal
Returns the “default value” for a type. Read more
source§impl Hash for ThreadLocal
impl Hash for ThreadLocal
source§impl Ord for ThreadLocal
impl Ord for ThreadLocal
source§fn cmp(&self, other: &ThreadLocal) -> Ordering
fn cmp(&self, other: &ThreadLocal) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ThreadLocal> for ThreadLocal
impl PartialEq<ThreadLocal> for ThreadLocal
source§fn eq(&self, other: &ThreadLocal) -> bool
fn eq(&self, other: &ThreadLocal) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ThreadLocal> for ThreadLocal
impl PartialOrd<ThreadLocal> for ThreadLocal
source§fn partial_cmp(&self, other: &ThreadLocal) -> Option<Ordering>
fn partial_cmp(&self, other: &ThreadLocal) -> Option<Ordering>
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 ThreadLocal
impl Eq for ThreadLocal
impl LocalThreadOwnership for ThreadLocal
impl NonUniqueOwnership for ThreadLocal
impl Ownership for ThreadLocal
impl StructuralEq for ThreadLocal
impl StructuralPartialEq for ThreadLocal
Auto Trait Implementations§
impl RefUnwindSafe for ThreadLocal
impl !Send for ThreadLocal
impl !Sync for ThreadLocal
impl Unpin for ThreadLocal
impl UnwindSafe for ThreadLocal
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.