icu_segmenter 1.0.0-alpha1

Unicode line breaking and text segmentation algorithms for text boundaries analysis
Documentation
// 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 ).

#[derive(Debug)]
pub enum Error {
    /// This error shows that if size of a data component is larger that what is should be.
    /// Example: the list of grapheme clusters must have at most std::i16::MAX number of elements
    Limit,

    /// This error shows that if there is a syntax error.
    /// Example: If there is a letter other than {b, e, i, s} in a bies sequence.
    Syntax,

    /// This error shows if matrices are not compatible for multiplication.
    DimensionMismatch,
}