Trait gdnative::object::NewRef

source ·
pub trait NewRef {
    fn new_ref(&self) -> Self;
}
Expand description

A trait for incrementing the reference count to a Godot object.

Required Methods§

source

fn new_ref(&self) -> Self

Creates a new reference to the underlying object.

Implementors§

source§

impl NewRef for GodotString

source§

impl NewRef for NodePath

source§

impl<Own> NewRef for Dictionary<Own>where
    Own: NonUniqueOwnership,

source§

impl<Own> NewRef for VariantArray<Own>where
    Own: NonUniqueOwnership,

source§

impl<T> NewRef for PoolArray<T>where
    T: PoolElement,