# Full source for the examples * [First draft](#first-draft) * [Version with type invariants](#version-with-type-invariants) * [Version with generic key type and Clone implementation](#version-with-generic-key-type-and-clone-implementation) ## First draft ```rust {{#include ../../../../examples/guide/bst_map.rs:all}} ``` ## Version with type invariants ```rust {{#include ../../../../examples/guide/bst_map_type_invariant.rs:all}} ``` ## Version with generic key type and Clone implementation ```rust {{#include ../../../../examples/guide/bst_map_generic.rs:all}} ```