ArgPassing

Trait ArgPassing 

pub trait ArgPassing: Sealed {
    type Output<'r, T: 'r>
       where Self: 'r;
}
Expand description

Determines whether arguments are passed by value or by reference to Godot.

See ToGodot::Pass.

Required Associated Types§

type Output<'r, T: 'r> where Self: 'r

Return type: T or &'r T.

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§

§

impl ArgPassing for ByObject

§

type Output<'r, T: 'r> = &'r T

§

impl ArgPassing for ByRef

§

type Output<'r, T: 'r> = &'r T

§

impl ArgPassing for ByValue

§

type Output<'r, T: 'r> = T

§

impl<Via> ArgPassing for ByOption<Via>
where Via: GodotType, <Via as GodotType>::ToFfi<'f>: for<'f> GodotNullableFfi,

§

type Output<'r, T: 'r> = Option<&'r Via> where ByOption<Via>: 'r