pub trait AsVariant: AsArg<Self::Target> {
    type Target;
}
Expand description

Trait for safe conversion from Godot object references into Variant. This is a sealed trait with no public interface.

Used for Variant methods and implementations as a trait bound to improve type inference.

Required Associated Types§

Implementors§

source§

impl<'a, T: GodotObject> AsVariant for &'a Ref<T, Shared>

§

type Target = T

source§

impl<'a, T: GodotObject> AsVariant for TRef<'a, T, Shared>

§

type Target = T

source§

impl<T: GodotObject> AsVariant for Null<T>

§

type Target = T

source§

impl<T: GodotObject> AsVariant for Ref<T, Shared>

§

type Target = T

source§

impl<T: GodotObject> AsVariant for Ref<T, Unique>

§

type Target = T