BencodexList

Type Alias BencodexList 

Source
pub type BencodexList = Vec<BencodexValue>;
Expand description

The type alias of Vec<BencodexValue> to reduce code size.

use bencodex::{ Encode, BencodexList };

let mut list = BencodexList::new();
list.push("foo".to_string().into());
list.push("bar".to_string().into());

let mut buf = vec![];
list.encode(&mut buf);
assert_eq!(buf, b"lu3:foou3:bare")

Aliased Typeยง

pub struct BencodexList { /* private fields */ }