Skip to main content

NewRef

Trait NewRef 

Source
pub trait NewRef {
    // Required method
    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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§