PtrWrapper

Trait PtrWrapper 

Source
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§

Provided Methods§

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.

Implementors§