Trait gdnative_core::nativescript::class::OwnerArg[][src]

pub trait OwnerArg<'a, T: GodotObject, Access: ThreadAccess + 'static>: Sealed { }

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]

Loading content...

Implementors

impl<'a, T, Access> OwnerArg<'a, T, Access> for TRef<'a, T, Access> where
    T: GodotObject,
    Access: ThreadAccess + 'static, 
[src]

Loading content...