Trait OwnerArg

Source
pub trait OwnerArg<'a, T: GodotObject, Own: Ownership + 'static>: Sealed { }
Expand description

Trait for types that can be used as the owner arguments of exported methods. This trait is sealed and has no public interface.

§Safety

Whenever a NativeScript methods is called, it’s assumed that the owner is safe to use. When calling a method that may call non-thread-safe methods on its owner from non-Rust code, the official thread-safety guidelines must be followed to prevent undefined behavior.

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.

Implementations on Foreign Types§

Source§

impl<'a, T, Own> OwnerArg<'a, T, Own> for &'a T
where T: GodotObject, Own: Ownership + 'static,

Implementors§

Source§

impl<'a, T, Own> OwnerArg<'a, T, Own> for TRef<'a, T, Own>
where T: GodotObject, Own: Ownership + 'static,