[][src]Trait gdnative::prelude::user_data::MapMut

pub trait MapMut: UserData {
    type Err: Debug;
    fn map_mut<F, U>(&self, op: F) -> Result<U, Self::Err>
    where
        F: FnOnce(&mut Self::Target) -> U
; }

Trait for wrappers that can be mapped mutably.

Associated Types

type Err: Debug

Loading content...

Required methods

fn map_mut<F, U>(&self, op: F) -> Result<U, Self::Err> where
    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.

Loading content...

Implementors

impl<T> MapMut for LocalCellData<T> where
    T: NativeClass
[src]

type Err = LocalCellError

impl<T, OPT> MapMut for MutexData<T, OPT> where
    OPT: LockOptions,
    T: NativeClass + Send
[src]

type Err = LockFailed

impl<T, OPT> MapMut for RwLockData<T, OPT> where
    OPT: LockOptions,
    T: NativeClass + Send + Sync
[src]

type Err = LockFailed

Loading content...