Skip to main content

ValueIntoString

Trait 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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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::owned::Value

Source§

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

Source§

type String = &'input str

Source§

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

Source§

type String = Cow<'value, str>

Source§

impl<'value> ValueIntoString for simd_json::lazy::Value<'_, '_, 'value>

Source§

type String = Cow<'value, str>