Skip to main content

Index

Trait Index 

Source
pub trait Index {
    // Required methods
    fn index_into(self, target: &SadValue) -> Option<&SadValue>;
    fn index_into_mut(self, target: &mut SadValue) -> Option<&mut SadValue>;
}

Required Methods§

Source

fn index_into(self, target: &SadValue) -> Option<&SadValue>

Source

fn index_into_mut(self, target: &mut SadValue) -> Option<&mut SadValue>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Index for &String

Source§

fn index_into(self, target: &SadValue) -> Option<&SadValue>

Source§

fn index_into_mut(self, target: &mut SadValue) -> Option<&mut SadValue>

Source§

impl Index for &str

Source§

fn index_into(self, target: &SadValue) -> Option<&SadValue>

Source§

fn index_into_mut(self, target: &mut SadValue) -> Option<&mut SadValue>

Source§

impl Index for String

Source§

fn index_into(self, target: &SadValue) -> Option<&SadValue>

Source§

fn index_into_mut(self, target: &mut SadValue) -> Option<&mut SadValue>

Source§

impl Index for usize

Source§

fn index_into(self, target: &SadValue) -> Option<&SadValue>

Source§

fn index_into_mut(self, target: &mut SadValue) -> Option<&mut SadValue>

Implementors§