Type Alias python_ast::pytypes::List

source ·
pub type List<T> = VecDeque<Box<T>>;
Expand description

The Python list type. Generally, it’s used with a dyn Object trait object to allow for arbitrary contents. Since Rust doesn’t have a native type that supports mixed type lists, we need to invent something.

Aliased Type§

struct List<T> { /* private fields */ }

Trait Implementations§

source§

impl<T: Iterator> ListLike<T> for List<T>

source§

fn append(&mut self, x: T)

source§

fn insert(&mut self, i: usize, x: T)

source§

fn extend(&mut self, iterable: Box<dyn Iterator<Item = T>>)