pub trait LibraryItems<K: Key> {
// Required methods
fn len(&self) -> usize;
fn key(&self, index: usize) -> K;
fn label(&self, index: usize) -> String;
// Provided methods
fn is_empty(&self) -> bool { ... }
fn marks(&self, index: usize) -> Marks { ... }
fn stack(&self, index: usize) -> Option<Stack<K>> { ... }
fn badges(&self, index: usize) -> Vec<Badge> { ... }
fn revision(&self) -> u64 { ... }
}Expand description
The images a library shows; the application owns them.