pub trait List {
// Required methods
fn len(&self) -> usize;
fn get(&self, index: usize) -> Value<'_>;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
A sequence a template can loop over.
Required Methods§
Sourcefn get(&self, index: usize) -> Value<'_>
fn get(&self, index: usize) -> Value<'_>
An item, or Value::Absent past the end.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".