Skip to main content

ValueIndex

Trait ValueIndex 

Source
pub trait ValueIndex {
    // Required method
    fn get_in<'a>(&self, v: &'a RuntimeValue) -> Option<&'a RuntimeValue>;
}
Expand description

Index trait for RuntimeValue::get. Mirrors serde_json::value::Index — &str indexes objects, usize indexes arrays.

Required Methods§

Source

fn get_in<'a>(&self, v: &'a RuntimeValue) -> Option<&'a RuntimeValue>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ValueIndex for &String

Source§

fn get_in<'a>(&self, v: &'a RuntimeValue) -> Option<&'a RuntimeValue>

Source§

impl ValueIndex for &str

Source§

fn get_in<'a>(&self, v: &'a RuntimeValue) -> Option<&'a RuntimeValue>

Source§

impl ValueIndex for usize

Source§

fn get_in<'a>(&self, v: &'a RuntimeValue) -> Option<&'a RuntimeValue>

Implementors§