pub trait FormatArgs {
// Provided methods
fn get_index(&self, index: usize) -> Result<Option<Argument<'_>>, ()> { ... }
fn get_key(&self, key: &str) -> Result<Option<Argument<'_>>, ()> { ... }
}Expand description
A container that provides access to indexed or named arguments.
Instances of this trait can be used as argument lists to format calls. A container may implement
either get_index, get_key or even both.