Trait gdnative_core::export::user_data::Map
source · pub trait Map: UserData {
type Err: Debug;
fn map<F, U>(&self, op: F) -> Result<U, Self::Err>
where
F: FnOnce(&Self::Target) -> U;
}
Expand description
Trait for wrappers that can be mapped immutably.