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
.