ParamType

Trait ParamType 

pub trait ParamType:
    Sized
    + ToGodot
    + 'static {
    type ArgPassing: ArgPassing;

    // Provided method
    fn owned_to_arg(self) -> impl AsArg<Self> { ... }
}
Expand description

Implemented for all parameter types T that are allowed to receive impl AsArg<T>.

Deprecated: This trait is considered deprecated and will be removed in 0.4. It is still required to be implemented by types that should be passed AsArg in the current version, though.

Required Associated Types§

Provided Methods§

fn owned_to_arg(self) -> impl AsArg<Self>

👎Deprecated since 0.3.2: This method is no longer needed and will be removed in 0.4

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.

Implementations on Foreign Types§

§

impl ParamType for bool

§

impl ParamType for f32

§

impl ParamType for f64

§

impl ParamType for i8

§

impl ParamType for i16

§

impl ParamType for i32

§

impl ParamType for i64

§

impl ParamType for u8

§

impl ParamType for u16

§

impl ParamType for u32

§

impl<T> ParamType for Option<Gd<T>>
where T: GodotClass,

Implementors§

§

impl ParamType for Rid

§

impl ParamType for Aabb

§

impl ParamType for Basis

§

impl ParamType for Callable

§

impl ParamType for Color

§

impl ParamType for Dictionary

§

impl ParamType for GString

§

impl ParamType for NodePath

§

impl ParamType for PackedByteArray

§

impl ParamType for PackedColorArray

§

impl ParamType for PackedFloat32Array

§

impl ParamType for PackedFloat64Array

§

impl ParamType for PackedInt32Array

§

impl ParamType for PackedInt64Array

§

impl ParamType for PackedStringArray

§

impl ParamType for PackedVector2Array

§

impl ParamType for PackedVector3Array

§

impl ParamType for PackedVector4Array

§

impl ParamType for Plane

§

impl ParamType for Projection

§

impl ParamType for Quaternion

§

impl ParamType for Rect2

§

impl ParamType for Rect2i

§

impl ParamType for Signal

§

impl ParamType for StringName

§

impl ParamType for Transform2D

§

impl ParamType for Transform3D

§

impl ParamType for Variant

§

impl ParamType for Vector2

§

impl ParamType for Vector2i

§

impl ParamType for Vector3

§

impl ParamType for Vector3i

§

impl ParamType for Vector4

§

impl ParamType for Vector4i

§

impl<T> ParamType for Array<T>
where T: ArrayElement,

§

impl<T> ParamType for Gd<T>
where T: GodotClass,

§

impl<T, D> ParamType for DynGd<T, D>
where T: GodotClass, D: 'static + ?Sized,