ArgPassing

Trait ArgPassing 

Source
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§

Source

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§

Source§

impl ArgPassing for ByObject

Source§

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

Source§

impl ArgPassing for ByRef

Source§

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

Source§

impl ArgPassing for ByValue

Source§

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

Source§

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

Source§

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