[−][src]Trait gdnative_core::nativescript::user_data::MapMut
Trait for wrappers that can be mapped mutably.
Associated Types
Loading content...Required methods
fn map_mut<F, U>(&self, op: F) -> Result<U, Self::Err> where
F: FnOnce(&mut Self::Target) -> U,
F: FnOnce(&mut Self::Target) -> U,
Maps a &mut T
to U
. Called for methods that take &mut self
.
Implementations of this method must not panic. Failures should be indicated by
returning Err
.
Implementors
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, OPT> MapMut for MutexData<T, OPT> where
T: NativeClass + Send,
OPT: LockOptions,
[src]
T: NativeClass + Send,
OPT: LockOptions,
type Err = LockFailed
fn map_mut<F, U>(&self, op: F) -> Result<U, LockFailed> where
F: FnOnce(&mut T) -> U,
[src]
F: FnOnce(&mut T) -> U,
impl<T, OPT> MapMut for RwLockData<T, OPT> where
T: NativeClass + Send + Sync,
OPT: LockOptions,
[src]
T: NativeClass + Send + Sync,
OPT: LockOptions,
type Err = LockFailed
fn map_mut<F, U>(&self, op: F) -> Result<U, LockFailed> where
F: FnOnce(&mut T) -> U,
[src]
F: FnOnce(&mut T) -> U,