sigma_bounded/error.rs
1//! Errors from bounded collection operations.
2
3/// Failure modes for [`super::Vec`], [`super::String`], and [`super::BTreeMap`].
4#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
5#[non_exhaustive]
6pub enum Error {
7 /// Capacity or element bound (`N`) would be exceeded.
8 CapacityExceeded,
9 /// UTF-8 validation failed.
10 InvalidUtf8,
11}
12
13/// Result alias for bounded-collection operations.
14pub type Result<T> = core::result::Result<T, Error>;