use displaydoc::Display;
#[derive(Copy, Clone, Display, Debug, PartialEq)]
#[non_exhaustive]
pub enum Error {
#[displaydoc("Could not construct CodePointTrie from deserialized values: {reason}")]
FromDeserialized {
reason: &'static str,
},
#[displaydoc("CodePointTrie must be constructed from data vector with at least one element")]
EmptyDataVector,
#[displaydoc("CodePointTrie must be constructed from index vector long enough to accommodate fast-path access")]
IndexTooShortForFastAccess,
#[displaydoc("CodePointTrie must be constructed from data vector long enough to accommodate fast-path access")]
DataTooShortForFastAccess,
}
impl core::error::Error for Error {}