Trait python_ast::pytypes::ListLike
source · pub trait ListLike<T> {
// Required methods
fn append(&mut self, x: T);
fn insert(&mut self, i: usize, x: T);
// Provided method
fn extend(&mut self, iterable: Box<dyn Iterator<Item = T>>) { ... }
}
Expand description
An interface for any data structure that works like a Python List.