pub trait VariableType {
    type Output;

    // Required methods
    fn get_var(name: &str) -> Self::Output;
    fn set_var(name: &str, var: Self);
}

Required Associated Types§

Required Methods§

source

fn get_var(name: &str) -> Self::Output

source

fn set_var(name: &str, var: Self)

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl VariableType for &str

§

type Output = String

source§

fn get_var(name: &str) -> Self::Output

source§

fn set_var(name: &str, var: Self)

source§

impl VariableType for bool

§

type Output = bool

source§

fn get_var(name: &str) -> Self::Output

source§

fn set_var(name: &str, var: Self)

source§

impl VariableType for f32

§

type Output = f32

source§

fn get_var(name: &str) -> Self::Output

source§

fn set_var(name: &str, var: Self)

source§

impl VariableType for f64

§

type Output = f64

source§

fn get_var(name: &str) -> Self::Output

source§

fn set_var(name: &str, var: Self)

source§

impl VariableType for i8

§

type Output = i8

source§

fn get_var(name: &str) -> Self::Output

source§

fn set_var(name: &str, var: Self)

source§

impl VariableType for i16

§

type Output = i16

source§

fn get_var(name: &str) -> Self::Output

source§

fn set_var(name: &str, var: Self)

source§

impl VariableType for i32

§

type Output = i32

source§

fn get_var(name: &str) -> Self::Output

source§

fn set_var(name: &str, var: Self)

source§

impl VariableType for i64

§

type Output = i64

source§

fn get_var(name: &str) -> Self::Output

source§

fn set_var(name: &str, var: Self)

source§

impl VariableType for u8

§

type Output = u8

source§

fn get_var(name: &str) -> Self::Output

source§

fn set_var(name: &str, var: Self)

source§

impl VariableType for u16

§

type Output = u16

source§

fn get_var(name: &str) -> Self::Output

source§

fn set_var(name: &str, var: Self)

source§

impl VariableType for u32

§

type Output = u32

source§

fn get_var(name: &str) -> Self::Output

source§

fn set_var(name: &str, var: Self)

source§

impl VariableType for u64

§

type Output = u64

source§

fn get_var(name: &str) -> Self::Output

source§

fn set_var(name: &str, var: Self)

source§

impl VariableType for String

§

type Output = String

source§

fn get_var(name: &str) -> Self::Output

source§

fn set_var(name: &str, var: Self)

Implementors§