ShouldBePassedAsRef

Trait ShouldBePassedAsRef 

pub trait ShouldBePassedAsRef { }
Expand description

Marker trait used to provide better diagnostic.

Used to mark arguments which should be passed by reference.

Note that GString/StringName/NodePath aren’t implicitly convertible for performance reasons; use their arg() method instead.

See: AsArg, ToGodot::Pass

Implementations on Foreign Types§

§

impl ShouldBePassedAsRef for &str

§

impl ShouldBePassedAsRef for &String

§

impl<T> ShouldBePassedAsRef for &T
where T: ToGodot<Pass = ByRef>,

Implementors§