[−][src]Module sortedvec::example
An example of a data structure defined using the sortedvec!
macro.
The structure is generated by the following code.
use sortedvec::sortedvec; sortedvec! { /// Sorted vector type that provides quick access to `(String, u64)`s through `u64` keys. #[derive(Debug, Clone)] pub struct ExampleSortedVec { fn derive_key(t: &(String, u64)) -> &u64 { &t.1 } } }
Structs
ExampleSortedVec | Sorted vector type that provides quick access to |