ArgPassing

Trait ArgPassing 

pub trait ArgPassing: Sealed {
    type Output<'r, T: '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>

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 ByRef

§

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

§

impl ArgPassing for ByValue

§

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