Trait Marshall

Source
pub trait Marshall {
    type Value;

    // Required methods
    fn to_bool(value: Self::Value) -> bool;
    fn to_u8(value: Self::Value) -> u8;
    fn to_u16(value: Self::Value) -> u16;
    fn to_u32(value: Self::Value) -> u32;
    fn to_u64(value: Self::Value) -> u64;
    fn to_i8(value: Self::Value) -> i8;
    fn to_i16(value: Self::Value) -> i16;
    fn to_i32(value: Self::Value) -> i32;
    fn to_i64(value: Self::Value) -> i64;
    fn to_f32(value: Self::Value) -> f32;
    fn to_f64(value: Self::Value) -> f64;
    fn to_string(value: Self::Value) -> String;
}
Expand description

An object that can marshall Rust values to an arbitrary value.

Required Associated Types§

Required Methods§

Source

fn to_bool(value: Self::Value) -> bool

Source

fn to_u8(value: Self::Value) -> u8

Source

fn to_u16(value: Self::Value) -> u16

Source

fn to_u32(value: Self::Value) -> u32

Source

fn to_u64(value: Self::Value) -> u64

Source

fn to_i8(value: Self::Value) -> i8

Source

fn to_i16(value: Self::Value) -> i16

Source

fn to_i32(value: Self::Value) -> i32

Source

fn to_i64(value: Self::Value) -> i64

Source

fn to_f32(value: Self::Value) -> f32

Source

fn to_f64(value: Self::Value) -> f64

Source

fn to_string(value: Self::Value) -> String

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.

Implementors§