Trait gdnative::prelude::nativescript::class::OwnerArg[][src]

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

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
    Access: ThreadAccess + 'static,
    T: GodotObject
[src]

Loading content...

Implementors

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

Loading content...