Trait Memory

Source
pub trait Memory: MemorySpec + Sealed { }
Expand description

Trait to parameterize over the memory management markers ManuallyManaged and RefCounted.

This trait is sealed and has no public members.

It defines how memory is managed for Godot objects in smart pointers, for example Ref. Generally, classes inheriting Reference are ref-counted, while the rest (i.e. everything inheriting Object which is not a Reference) is manually managed.

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§