#[non_exhaustive]pub enum BuildFailure {
Show 18 variants
InvalidSize {
actual: usize,
expected: usize,
},
InvalidFieldSize {
actual: usize,
expected: usize,
field: &'static str,
},
Io(Error),
NoRawField(&'static str),
CsvError(Error),
InvalidCharLiteral(String),
InvalidI16Literal(String),
InvalidU32Literal(String),
InvalidWordId(String),
InvalidSplit(String),
SplitFormatError {
field: &'static str,
original: String,
},
EmptySurface,
PosLimitExceeded(String),
InvalidSplitWordReference(String),
UnresolvedSplits,
InvalidConnSize(&'static str, i16),
WordIdTableNotBuilt,
TrieBuildFailure,
}
Expand description
Actual specific errors for dictionary compilation
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidSize
InvalidFieldSize
Io(Error)
NoRawField(&'static str)
CsvError(Error)
InvalidCharLiteral(String)
InvalidI16Literal(String)
InvalidU32Literal(String)
InvalidWordId(String)
InvalidSplit(String)
SplitFormatError
EmptySurface
PosLimitExceeded(String)
InvalidSplitWordReference(String)
UnresolvedSplits
InvalidConnSize(&'static str, i16)
WordIdTableNotBuilt
TrieBuildFailure
Trait Implementations§
source§impl Debug for BuildFailure
impl Debug for BuildFailure
source§impl Display for BuildFailure
impl Display for BuildFailure
source§impl Error for BuildFailure
impl Error for BuildFailure
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for BuildFailure
impl !RefUnwindSafe for BuildFailure
impl Send for BuildFailure
impl Sync for BuildFailure
impl Unpin for BuildFailure
impl !UnwindSafe for BuildFailure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more