Trait simd_json::prelude::base::ValueIntoString

source ·
pub trait ValueIntoString {
    type String;

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

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

Required Associated Types§

source

type String

The type for Strings

Required Methods§

source

fn into_string(self) -> Option<Self::String>

Tries to turn the value into it’s string representation

Implementations on Foreign Types§

source§

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

source§

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

Implementors§

source§

impl ValueIntoString for simd_json::value::owned::Value

source§

impl<'tape, 'input> ValueIntoString for simd_json::value::tape::Value<'tape, 'input>

§

type String = &'input str

source§

impl<'value> ValueIntoString for simd_json::value::borrowed::Value<'value>

§

type String = Cow<'value, str>