Trait VariableType

Source
pub trait VariableType {
    type Output;

    // Required methods
    fn get(name: &str) -> Self::Output;
    fn set(&self, name: &str);
}

Required Associated Types§

Required Methods§

Source

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

Source

fn set(&self, name: &str)

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 VariableType for &str

Source§

type Output = String

Source§

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

Source§

fn set(&self, name: &str)

Source§

impl VariableType for bool

Source§

type Output = bool

Source§

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

Source§

fn set(&self, name: &str)

Source§

impl VariableType for f32

Source§

type Output = f32

Source§

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

Source§

fn set(&self, name: &str)

Source§

impl VariableType for f64

Source§

type Output = f64

Source§

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

Source§

fn set(&self, name: &str)

Source§

impl VariableType for i8

Source§

type Output = i8

Source§

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

Source§

fn set(&self, name: &str)

Source§

impl VariableType for i16

Source§

type Output = i16

Source§

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

Source§

fn set(&self, name: &str)

Source§

impl VariableType for i32

Source§

type Output = i32

Source§

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

Source§

fn set(&self, name: &str)

Source§

impl VariableType for i64

Source§

type Output = i64

Source§

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

Source§

fn set(&self, name: &str)

Source§

impl VariableType for u8

Source§

type Output = u8

Source§

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

Source§

fn set(&self, name: &str)

Source§

impl VariableType for u16

Source§

type Output = u16

Source§

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

Source§

fn set(&self, name: &str)

Source§

impl VariableType for u32

Source§

type Output = u32

Source§

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

Source§

fn set(&self, name: &str)

Source§

impl VariableType for u64

Source§

type Output = u64

Source§

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

Source§

fn set(&self, name: &str)

Source§

impl VariableType for String

Source§

type Output = String

Source§

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

Source§

fn set(&self, name: &str)

Implementors§