value_trait::base

Trait ValueIntoArray

source
pub trait ValueIntoArray {
    type Array;

    // Required method
    fn into_array(self) -> Option<Self::Array>;
}
Expand description

A trait that specifies how to turn the Value into it’s sub types

Required Associated Types§

source

type Array

The type for Arrays

Required Methods§

source

fn into_array(self) -> Option<Self::Array>

Tries to turn the value into it’s array representation

Implementations on Foreign Types§

source§

impl<V> ValueIntoArray for Option<V>
where V: ValueIntoArray,

source§

impl<V, E> ValueIntoArray for Result<V, E>
where V: ValueIntoArray,

Implementors§