pub trait PtrWrapper {
// Required methods
fn new(ptr: NonNull<godot_object>) -> Self;
fn as_non_null(&self) -> NonNull<godot_object>;
// Provided method
fn as_ptr(&self) -> *mut godot_object { ... }
}Expand description
Specialization trait for Drop behavior.
Required Methods§
fn new(ptr: NonNull<godot_object>) -> Self
fn as_non_null(&self) -> NonNull<godot_object>
Provided Methods§
fn as_ptr(&self) -> *mut godot_object
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.