Skip to main content

args

Function args 

Source
pub fn args<'a, V>(pairs: impl IntoIterator<Item = (&'a str, V)>) -> Args<'a>
where V: Into<Value<'a>>,
Available on crate feature std only.
Expand description

Arguments from same-typed (name, value) pairs.

use phrasebook::args;

let args = args([("count", 2), ("limit", 10)]);

For values of different types, use args!.