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: <Aether<T> as UserData>::Target) -> Aether<T>
fn new(_val: <Aether<T> as UserData>::Target) -> Aether<T>
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