ordmask 2.1.0

A library for efficient range-based set operations and membership checking
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

/// Error for [`OrdMask`](crate::OrdMask).
#[derive(Debug, Error)]
pub enum Error {
    /// [`.key_points()`](crate::OrdMask::key_points) for [`OrdMask`](crate::OrdMask) must be non-decreasing,
    /// but value at this index is less than the preceding value.
    #[error(
        "key points for OrdMask must be non-decreasing, \
         but value at index {0} is less than the preceding value"
    )]
    FallingAt(usize),
}