[−][src]Struct gdnative_core::user_data::LocalCellData
User-data wrapper analogous to a Arc<RefCell<T>>, that is restricted to the thread
where it was originally created.
This works by checking ThreadId before touching the underlying reference. If the id
doesn't match the original thread, map and map_mut will return an error.
Trait Implementations
impl<T> Clone for LocalCellData<T>[src]
fn clone(&self) -> Self[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<T: Debug> Debug for LocalCellData<T>[src]
impl<T> Map for LocalCellData<T> where
T: NativeClass, [src]
T: NativeClass,
type Err = LocalCellError
fn map<F, U>(&self, op: F) -> Result<U, Self::Err> where
F: FnOnce(&Self::Target) -> U, [src]
F: FnOnce(&Self::Target) -> U,
impl<T> MapMut for LocalCellData<T> where
T: NativeClass, [src]
T: NativeClass,
type Err = LocalCellError
fn map_mut<F, U>(&self, op: F) -> Result<U, Self::Err> where
F: FnOnce(&mut Self::Target) -> U, [src]
F: FnOnce(&mut Self::Target) -> U,
impl<T> UserData for LocalCellData<T> where
T: NativeClass, [src]
T: NativeClass,
Auto Trait Implementations
impl<T> !RefUnwindSafe for LocalCellData<T>
impl<T> Send for LocalCellData<T>
impl<T> Sync for LocalCellData<T>
impl<T> Unpin for LocalCellData<T>
impl<T> !UnwindSafe for LocalCellData<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,