pub trait NativeTypeArguments: Sized {
    const DESCRIPTION: &'static str;
    const OPTIONAL_ARGUMENTS_COUNT: usize;
    const REQUIRED_ARGUMENTS_COUNT: usize;

    // Required methods
    fn from_parts(parts: &[String]) -> Option<Self>;
    fn to_parts(&self) -> Vec<String>;
}

Required Associated Constants§

Required Methods§

source

fn from_parts(parts: &[String]) -> Option<Self>

source

fn to_parts(&self) -> Vec<String>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl NativeTypeArguments for (u32, u32)

source§

const DESCRIPTION: &'static str = "two nonnegative integers"

source§

const REQUIRED_ARGUMENTS_COUNT: usize = 2usize

source§

const OPTIONAL_ARGUMENTS_COUNT: usize = 0usize

source§

fn to_parts(&self) -> Vec<String>

source§

fn from_parts(parts: &[String]) -> Option<(u32, u32)>

source§

impl NativeTypeArguments for u32

source§

const DESCRIPTION: &'static str = "a nonnegative integer"

source§

const OPTIONAL_ARGUMENTS_COUNT: usize = 0usize

source§

const REQUIRED_ARGUMENTS_COUNT: usize = 1usize

source§

fn to_parts(&self) -> Vec<String>

source§

fn from_parts(parts: &[String]) -> Option<u32>

source§

impl<T> NativeTypeArguments for Option<T>where T: NativeTypeArguments,

source§

const DESCRIPTION: &'static str = T::DESCRIPTION

source§

const OPTIONAL_ARGUMENTS_COUNT: usize = T::REQUIRED_ARGUMENTS_COUNT

source§

const REQUIRED_ARGUMENTS_COUNT: usize = 0usize

source§

fn to_parts(&self) -> Vec<String>

source§

fn from_parts(parts: &[String]) -> Option<Option<T>>

Implementors§