//! Crate-private getters Swift reads the model through.
//!
//! Each lends what the model holds, so Swift's copy is the only one. Shapes
//! swift-bridge can't return become sets: optional nested value → `has_x` +
//! `x`; list → `x_len` + `x_at`; map → length + key and value at an index;
//! enum → mode + payload. Swift asks for an index only below the length.
//!
//! Split as `model` is.
use BTreeMap;
use Path;
/// The `index`th entry of a sorted map.