InnerAsRef

Trait InnerAsRef 

Source
pub trait InnerAsRef {
    // Required method
    fn json_value_as(v: &JsonValue) -> Option<&Self>;
}
Expand description

Trait to access to inner value of JsonValue as reference.

This is used by several APIs like JsonValue::get to represent any inner values of JsonValue.

Required Methods§

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.

Implementations on Foreign Types§

Source§

impl InnerAsRef for bool

Source§

impl InnerAsRef for f64

Source§

impl InnerAsRef for ()

Source§

impl InnerAsRef for String

Source§

impl InnerAsRef for Vec<JsonValue>

Source§

impl InnerAsRef for HashMap<String, JsonValue>

Implementors§