Trait ParamTuple

pub trait ParamTuple: 'static {
    // Required methods
    fn to_variant_array(&self) -> Vec<Variant>;
    fn from_variant_array(array: &[&Variant]) -> Self;
}
Expand description

Represents a parameter list as Rust tuple.

Each tuple element is one parameter. This trait provides conversions to and from Variant arrays.

Required Methods§

fn to_variant_array(&self) -> Vec<Variant>

fn from_variant_array(array: &[&Variant]) -> Self

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 ParamTuple for ()

§

impl<P0> ParamTuple for (P0,)
where P0: ToGodot + FromGodot + 'static,

§

impl<P0, P1> ParamTuple for (P0, P1)
where P0: ToGodot + FromGodot + 'static, P1: ToGodot + FromGodot + 'static,

§

impl<P0, P1, P2> ParamTuple for (P0, P1, P2)
where P0: ToGodot + FromGodot + 'static, P1: ToGodot + FromGodot + 'static, P2: ToGodot + FromGodot + 'static,

§

impl<P0, P1, P2, P3> ParamTuple for (P0, P1, P2, P3)
where P0: ToGodot + FromGodot + 'static, P1: ToGodot + FromGodot + 'static, P2: ToGodot + FromGodot + 'static, P3: ToGodot + FromGodot + 'static,

§

impl<P0, P1, P2, P3, P4> ParamTuple for (P0, P1, P2, P3, P4)
where P0: ToGodot + FromGodot + 'static, P1: ToGodot + FromGodot + 'static, P2: ToGodot + FromGodot + 'static, P3: ToGodot + FromGodot + 'static, P4: ToGodot + FromGodot + 'static,

§

impl<P0, P1, P2, P3, P4, P5> ParamTuple for (P0, P1, P2, P3, P4, P5)
where P0: ToGodot + FromGodot + 'static, P1: ToGodot + FromGodot + 'static, P2: ToGodot + FromGodot + 'static, P3: ToGodot + FromGodot + 'static, P4: ToGodot + FromGodot + 'static, P5: ToGodot + FromGodot + 'static,

§

impl<P0, P1, P2, P3, P4, P5, P6> ParamTuple for (P0, P1, P2, P3, P4, P5, P6)
where P0: ToGodot + FromGodot + 'static, P1: ToGodot + FromGodot + 'static, P2: ToGodot + FromGodot + 'static, P3: ToGodot + FromGodot + 'static, P4: ToGodot + FromGodot + 'static, P5: ToGodot + FromGodot + 'static, P6: ToGodot + FromGodot + 'static,

§

impl<P0, P1, P2, P3, P4, P5, P6, P7> ParamTuple for (P0, P1, P2, P3, P4, P5, P6, P7)
where P0: ToGodot + FromGodot + 'static, P1: ToGodot + FromGodot + 'static, P2: ToGodot + FromGodot + 'static, P3: ToGodot + FromGodot + 'static, P4: ToGodot + FromGodot + 'static, P5: ToGodot + FromGodot + 'static, P6: ToGodot + FromGodot + 'static, P7: ToGodot + FromGodot + 'static,

§

impl<P0, P1, P2, P3, P4, P5, P6, P7, P8> ParamTuple for (P0, P1, P2, P3, P4, P5, P6, P7, P8)
where P0: ToGodot + FromGodot + 'static, P1: ToGodot + FromGodot + 'static, P2: ToGodot + FromGodot + 'static, P3: ToGodot + FromGodot + 'static, P4: ToGodot + FromGodot + 'static, P5: ToGodot + FromGodot + 'static, P6: ToGodot + FromGodot + 'static, P7: ToGodot + FromGodot + 'static, P8: ToGodot + FromGodot + 'static,

§

impl<P0, P1, P2, P3, P4, P5, P6, P7, P8, P9> ParamTuple for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9)
where P0: ToGodot + FromGodot + 'static, P1: ToGodot + FromGodot + 'static, P2: ToGodot + FromGodot + 'static, P3: ToGodot + FromGodot + 'static, P4: ToGodot + FromGodot + 'static, P5: ToGodot + FromGodot + 'static, P6: ToGodot + FromGodot + 'static, P7: ToGodot + FromGodot + 'static, P8: ToGodot + FromGodot + 'static, P9: ToGodot + FromGodot + 'static,

Implementors§