Sha256: 0a6ef59c27c462bc9ca980137c5b3ce6161e21eac2086211b87b760aa2a96125

Contents?: true

Size: 1009 Bytes

Versions: 3

Compression:

Stored size: 1009 Bytes

Contents

// This file is part of ICU4X. For terms of use, please see the file
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).

//! Custom error type(s) for the parent module.

use displaydoc::Display;

/// A custom error type for [`CodePointTrie`](super::CodePointTrie).
///
/// Re-exported as [Error][super::Error].
#[derive(Copy, Clone, Display, Debug, PartialEq)]
#[non_exhaustive]
pub enum Error {
    /// Could not construct [`CodePointTrie`](super::CodePointTrie) from deserialized values
    #[displaydoc("Could not construct CodePointTrie from deserialized values: {reason}")]
    FromDeserialized {
        /// Reason for inability to deserialize values.
        reason: &'static str,
    },
    /// [`CodePointTrie`](super::CodePointTrie) must be constructed from data vector with at least one element
    #[displaydoc("CodePointTrie must be constructed from data vector with at least one element")]
    EmptyDataVector,
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/icu_collections-1.5.0/src/codepointtrie/error.rs
wasmtime-28.0.0 ./ext/cargo-vendor/icu_collections-1.5.0/src/codepointtrie/error.rs
wasmtime-27.0.0 ./ext/cargo-vendor/icu_collections-1.5.0/src/codepointtrie/error.rs