    ///
    /// - Complexity: O(1)
    @warn_unused_result
    public func distanceTo(end: BTreeIndex) -> Int {
        state.expectRoot(end.state.root)
        return end.state.offset - state.offset
    }
}

/// Return true iff `a` is equal to `b`.
@warn_unused_result