macro_rules! list {
($($x:expr),* $(,)?) => { ... };
}Expand description
Create a Value::List from a list of Values
use bencode_minimal::*;
use std::borrow::Cow;
let v = list![
int!(42),
str!("hello"),
];
assert_eq!(v, Value::List(vec![Value::Int(42), Value::Str(Cow::Borrowed(b"hello"))]));