Could something like the BTreeMap entry interface be implemented for collections with certain traits?