Struct gdnative_core::export::user_data::Aether
source · pub struct Aether<T> { /* private fields */ }Expand description
Special user-data wrapper intended for zero-sized types, that does not perform any
allocation or synchronization at runtime. Does not implement MapMut.
Aether produces a value using Default each time it’s mapped. This is most useful when
used with auto-load scripts to simulate static functions, since actual static functions
can’t be exported in GDNative.
Trait Implementations§
source§impl<T> UserData for Aether<T>where
T: NativeClass + Copy + Default,
impl<T> UserData for Aether<T>where
T: NativeClass + Copy + Default,
type Target = T
source§fn new(_val: Self::Target) -> Self
fn new(_val: Self::Target) -> Self
Creates a new owned wrapper from a
NativeClass instance. Read moresource§fn into_user_data(self) -> *const c_void
fn into_user_data(self) -> *const c_void
Takes a native instance and returns an opaque pointer that can be used to recover it. Read more