Struct gdnative::GodotRef
[−]
[src]
pub struct GodotRef<T: GodotClass> { /* fields omitted */ }
Methods
impl<T> GodotRef<T> where
T: GodotClass,
[src]
T: GodotClass,
pub unsafe fn from_object(obj: *mut godot_object) -> GodotRef<T>
[src]
pub unsafe fn from_raw(obj: *mut godot_object) -> GodotRef<T>
[src]
pub fn cast<O>(&self) -> Option<GodotRef<O>> where
O: GodotClass,
[src]
O: GodotClass,
pub fn cast_native<O>(&self) -> Option<GodotRef<O>> where
O: GodotClass,
[src]
O: GodotClass,
Trait Implementations
impl<T> Deref for GodotRef<T> where
T: GodotClass,
[src]
T: GodotClass,
type Target = T::Reference
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.
impl<T: GodotClass> Drop for GodotRef<T>
[src]
impl<T> From<GodotRef<T>> for Variant where
T: GodotClass,
[src]
T: GodotClass,