#[repr(transparent)]pub struct Slot<T: ?Sized> {
inner: UnsafeCell<T>,
}
Expand description
Fields§
§inner: UnsafeCell<T>
Implementations§
Trait Implementations§
Source§impl IntoObject for Slot<Gc<ObjectType<'_>>>
impl IntoObject for Slot<Gc<ObjectType<'_>>>
Source§impl<'new, T: WithLifetime<'new> + Copy> WithLifetime<'new> for Slot<T>
impl<'new, T: WithLifetime<'new> + Copy> WithLifetime<'new> for Slot<T>
type Out = Slot<<T as WithLifetime<'new>>::Out>
unsafe fn with_lifetime(self) -> Self::Out
impl<T: Eq> Eq for Slot<T>
Auto Trait Implementations§
impl<T> !Freeze for Slot<T>
impl<T> !RefUnwindSafe for Slot<T>
impl<T> Send for Slot<T>
impl<T> !Sync for Slot<T>
impl<T> Unpin for Slot<T>
impl<T> UnwindSafe for Slot<T>where
T: UnwindSafe + ?Sized,
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.