Trait lib_ruby_parser::containers::helpers::ListAPI[][src]

pub trait ListAPI<T: Clone> {
    fn take_first(self) -> T;
}
Expand description

Shared List API, implemented for both ExternalList and std::vec::Vec

Required methods

Consumes self and returns the first element. Panics if list is empty

Implementations on Foreign Types

Implementors