nonempty-containers 0.2.3

Fast, zero-cost conversion, and fully inter-operable nonempty container types.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Error types for the non-empty types.

/// Errors that can occur when working with non-empty types..
#[derive(Debug)]
pub enum NonEmptyError {
    /// Encountered an empty collection when it was expected to be non-empty.
    Empty,

    /// Attempted to remove an element from a singleton [NonEmptyVec].
    AlreadySingleton,
}