Trait ParamTuple

Source
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§

Source

const LEN: usize

The number of elements in this parameter list.

Required Methods§

Source

fn format_args(&self) -> String

Return a string representing the arguments.

Provided Methods§

Source

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§

Source§

impl ParamTuple for ()

Source§

const LEN: usize = 0usize

Source§

fn format_args(&self) -> String

Source§

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

Source§

const LEN: usize = 1usize

Source§

fn format_args(&self) -> String

Source§

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

Source§

const LEN: usize = 2usize

Source§

fn format_args(&self) -> String

Source§

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

Source§

const LEN: usize = 3usize

Source§

fn format_args(&self) -> String

Source§

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

Source§

const LEN: usize = 4usize

Source§

fn format_args(&self) -> String

Source§

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

Source§

const LEN: usize = 5usize

Source§

fn format_args(&self) -> String

Source§

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

Source§

const LEN: usize = 6usize

Source§

fn format_args(&self) -> String

Source§

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

Source§

const LEN: usize = 7usize

Source§

fn format_args(&self) -> String

Source§

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

Source§

const LEN: usize = 8usize

Source§

fn format_args(&self) -> String

Source§

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

Source§

const LEN: usize = 9usize

Source§

fn format_args(&self) -> String

Source§

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

Source§

const LEN: usize = 10usize

Source§

fn format_args(&self) -> String

Source§

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)

Source§

const LEN: usize = 11usize

Source§

fn format_args(&self) -> String

Source§

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)

Source§

const LEN: usize = 12usize

Source§

fn format_args(&self) -> String

Source§

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)

Source§

const LEN: usize = 13usize

Source§

fn format_args(&self) -> String

Source§

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)

Source§

const LEN: usize = 14usize

Source§

fn format_args(&self) -> String

Implementors§