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
Required methods
fn take_first(self) -> T
fn take_first(self) -> T
Consumes self
and returns the first element.
Panics if list is empty