• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zbraniecki / icu4x / 6815798908

09 Nov 2023 05:17PM CUT coverage: 72.607% (-2.4%) from 75.01%
6815798908

push

github

web-flow
Implement `Any/BufferProvider` for some smart pointers (#4255)

Allows storing them as a `Box<dyn Any/BufferProvider>` without using a
wrapper type that implements the trait.

44281 of 60987 relevant lines covered (72.61%)

201375.86 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/components/collections/src/codepointtrie/error.rs
1
// This file is part of ICU4X. For terms of use, please see the file
2
// called LICENSE at the top level of the ICU4X source tree
3
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
4

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

7
#[cfg(doc)]
8
use crate::codepointtrie::CodePointTrie;
9
use displaydoc::Display;
10

11
/// A custom error type for [`CodePointTrie`].
12
///
13
/// Re-exported as [Error][super::Error].
14
#[derive(Copy, Clone, Display, Debug, PartialEq)]
×
15
#[non_exhaustive]
16
pub enum Error {
17
    /// Could not construct CodePointTrie from deserialized values
18
    #[displaydoc("Could not construct CodePointTrie from deserialized values: {reason}")]
×
19
    FromDeserialized {
20
        /// Reason for inability to deserialize values.
21
        reason: &'static str,
×
22
    },
23
    /// CodePointTrie must be constructed from data vector with at least one element
24
    #[displaydoc("CodePointTrie must be constructed from data vector with at least one element")]
25
    EmptyDataVector,
26
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc