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