Trait nv_card::Collection [] [src]

pub trait Collection {
    type Item;
    fn size(&self) -> usize;

    fn is_empty(&self) -> bool { ... }
}

trait to impl for any type that represents a collection of items

Associated Types

Item Type of collection

Required Methods

Number of items in the collection

Provided Methods

Helper function for whether collection has elements

Implementors