addended_ordered_map 0.1.0

Ordered mapping with ranged lookups. Range sizes can be modified after creation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* SPDX-FileCopyrightText: © 2026 Decompollaborate */
/* SPDX-License-Identifier: MIT OR Apache-2.0 */

/// A value that can report its size through a fallible operation.
///
/// This trait is used by fallible maps to determine how far the key range
/// extends. If the size cannot be produced, the error is propagated to the
/// caller.
pub trait SizedValueFallible<SIZE, E> {
    /// Gets the size associated the value of a pairing.
    ///
    /// The size type may be different to the type of the value itself.
    fn size(&self) -> Result<SIZE, E>;
}