rocket_config

Trait Index

Source
pub trait Index: Sealed { }
Expand description

A type that can be used to index into a rocket_config::Value.

The get and get_mut methods of Value accept any type that implements Index, as does the square-bracket indexing operator. This trait is implemented for strings which are used as the index into a JSON map, and for usize which is used as the index into a JSON array.

This trait is sealed and cannot be implemented for types outside of rocket_config.

Implementations on Foreign Types§

Source§

impl Index for str

Source§

impl Index for usize

Source§

impl Index for String

Source§

impl<'a, T> Index for &'a T
where T: Index + ?Sized,

Implementors§