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>
impl<T> UserData for Aether<T>
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
impl<T: Copy> Copy for Aether<T>
impl<T> Send for Aether<T>
impl<T> Sync for Aether<T>
Auto Trait Implementations§
impl<T> Freeze for Aether<T>
impl<T> RefUnwindSafe for Aether<T>where
T: RefUnwindSafe,
impl<T> Unpin for Aether<T>where
T: Unpin,
impl<T> UnwindSafe for Aether<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more