Trait gdnative_core::nativescript::class::OwnerArg [−][src]
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.
Implementations on Foreign Types
impl<'a, T, Access> OwnerArg<'a, T, Access> for &'a T where
T: GodotObject,
Access: ThreadAccess + 'static,
[src]
T: GodotObject,
Access: ThreadAccess + 'static,
fn from_safe_ref(owner: TRef<'a, T, Access>) -> Self
[src]
Implementors
impl<'a, T, Access> OwnerArg<'a, T, Access> for TRef<'a, T, Access> where
T: GodotObject,
Access: ThreadAccess + 'static,
[src]
T: GodotObject,
Access: ThreadAccess + 'static,