pub trait ToDynamic {
    // Required method
    fn to_dynamic(&self) -> Value;
}
Expand description

The ToDynamic trait allows a type to emit a representation of itself as the Value type. This trait can be derived.

Required Methods§

source

fn to_dynamic(&self) -> Value

Implementations on Foreign Types§

source§

impl ToDynamic for bool

source§

impl ToDynamic for char

source§

impl ToDynamic for f32

source§

impl ToDynamic for f64

source§

impl ToDynamic for i8

source§

impl ToDynamic for i16

source§

impl ToDynamic for i32

source§

impl ToDynamic for i64

source§

impl ToDynamic for isize

source§

impl ToDynamic for str

source§

impl ToDynamic for u8

source§

impl ToDynamic for u16

source§

impl ToDynamic for u32

source§

impl ToDynamic for u64

source§

impl ToDynamic for ()

source§

impl ToDynamic for usize

source§

impl ToDynamic for String

source§

impl ToDynamic for Duration

source§

impl ToDynamic for PathBuf

source§

impl ToDynamic for NotNan<f64>

source§

impl<K: ToDynamic + ToString + 'static, T: ToDynamic> ToDynamic for HashMap<K, T>

source§

impl<T: ToDynamic> ToDynamic for Option<T>

source§

impl<T: ToDynamic> ToDynamic for Box<T>

source§

impl<T: ToDynamic> ToDynamic for Arc<T>

source§

impl<T: ToDynamic> ToDynamic for Vec<T>

source§

impl<T: ToDynamic, const N: usize> ToDynamic for [T; N]

Implementors§