Trait Value

Source
pub trait Value {
    const TYPE: ValueType;
    const ONLY_FRONT: bool;

    // Required method
    fn to_i32(self) -> i32;
}
Expand description

Supported value transfer type

Required Associated Constants§

Source

const TYPE: ValueType

Associated [ValueType]

Source

const ONLY_FRONT: bool

Only positive front

Required Methods§

Source

fn to_i32(self) -> i32

i32 representation

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 Value for bool

Source§

const TYPE: ValueType = ValueType::Bool

Source§

const ONLY_FRONT: bool = false

Source§

fn to_i32(self) -> i32

Source§

impl Value for f32

Source§

const TYPE: ValueType = ValueType::Float

Source§

const ONLY_FRONT: bool = false

Source§

fn to_i32(self) -> i32

Source§

impl Value for i32

Source§

const TYPE: ValueType = ValueType::Int

Source§

const ONLY_FRONT: bool = false

Source§

fn to_i32(self) -> i32

Implementors§

Source§

impl Value for OnlyFront

Source§

const TYPE: ValueType = ValueType::Bool

Source§

const ONLY_FRONT: bool = true