Trait AsDirectElement
pub trait AsDirectElement<T>: AsArg<T>where
T: Element,{ }Expand description
Marker trait for types directly usable in the array! and dict! macros.
More restrictive than AsArg<T> — avoids ambiguity once AsArg<Variant> impls are added.
Implemented for:
TwhenT: Element + ToGodot<Pass = ByValue>(e.g.i32,bool,Color).&TwhenT: Element + ToGodot<Pass = ByRef>(e.g.&GString,&Array<T>).&str,&StringforGString(only; notStringName/NodePathto avoid ambiguity).
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.