Trait ParamTuple

pub trait ParamTuple: Sized {
    const LEN: usize;

    // Required method
    fn format_args(&self) -> String;

    // Provided method
    fn property_info(index: usize, param_name: &str) -> Option<PropertyInfo> { ... }
}
Expand description

Represents a parameter list as Rust tuple where each tuple element is one parameter.

This trait only contains metadata for the parameter list, the actual functionality is contained in InParamTuple and OutParamTuple.

Required Associated Constants§

const LEN: usize

The number of elements in this parameter list.

Required Methods§

fn format_args(&self) -> String

Return a string representing the arguments.

Provided Methods§

fn property_info(index: usize, param_name: &str) -> Option<PropertyInfo>

The property info of the parameter at index index.

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

§

const LEN: usize = 0usize

§

fn format_args(&self) -> String

§

impl<P0> ParamTuple for (P0,)
where P0: GodotConvert + Debug,

§

const LEN: usize = 1usize

§

fn format_args(&self) -> String

§

impl<P0, P1> ParamTuple for (P0, P1)
where P0: GodotConvert + Debug, P1: GodotConvert + Debug,

§

const LEN: usize = 2usize

§

fn format_args(&self) -> String

§

impl<P0, P1, P2> ParamTuple for (P0, P1, P2)

§

const LEN: usize = 3usize

§

fn format_args(&self) -> String

§

impl<P0, P1, P2, P3> ParamTuple for (P0, P1, P2, P3)

§

const LEN: usize = 4usize

§

fn format_args(&self) -> String

§

impl<P0, P1, P2, P3, P4> ParamTuple for (P0, P1, P2, P3, P4)

§

const LEN: usize = 5usize

§

fn format_args(&self) -> String

§

impl<P0, P1, P2, P3, P4, P5> ParamTuple for (P0, P1, P2, P3, P4, P5)

§

const LEN: usize = 6usize

§

fn format_args(&self) -> String

§

impl<P0, P1, P2, P3, P4, P5, P6> ParamTuple for (P0, P1, P2, P3, P4, P5, P6)

§

const LEN: usize = 7usize

§

fn format_args(&self) -> String

§

impl<P0, P1, P2, P3, P4, P5, P6, P7> ParamTuple for (P0, P1, P2, P3, P4, P5, P6, P7)

§

const LEN: usize = 8usize

§

fn format_args(&self) -> String

§

impl<P0, P1, P2, P3, P4, P5, P6, P7, P8> ParamTuple for (P0, P1, P2, P3, P4, P5, P6, P7, P8)

§

const LEN: usize = 9usize

§

fn format_args(&self) -> String

§

impl<P0, P1, P2, P3, P4, P5, P6, P7, P8, P9> ParamTuple for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9)

§

const LEN: usize = 10usize

§

fn format_args(&self) -> String

§

impl<P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10> ParamTuple for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10)

§

const LEN: usize = 11usize

§

fn format_args(&self) -> String

§

impl<P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11> ParamTuple for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11)

§

const LEN: usize = 12usize

§

fn format_args(&self) -> String

§

impl<P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12> ParamTuple for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12)

§

const LEN: usize = 13usize

§

fn format_args(&self) -> String

§

impl<P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13> ParamTuple for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13)

§

const LEN: usize = 14usize

§

fn format_args(&self) -> String

Implementors§