#[non_exhaustive]pub enum WordInfoError {
EntryIdNotAligned(usize),
FailedToLoadEntrySize(usize),
EntryIdTooLarge(usize),
}Expand description
Errors returned while scanning binary WordInfo entry boundaries.
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.
EntryIdNotAligned(usize)
WordInfo entry offsets must be aligned because entry ids are derived from them.
FailedToLoadEntrySize(usize)
The scanner could not determine a complete, valid entry size at the offset.
EntryIdTooLarge(usize)
The entry offset cannot be represented as a valid Sudachi entry id.
Trait Implementations§
Source§impl Clone for WordInfoError
impl Clone for WordInfoError
Source§fn clone(&self) -> WordInfoError
fn clone(&self) -> WordInfoError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WordInfoError
impl Debug for WordInfoError
Source§impl Display for WordInfoError
impl Display for WordInfoError
impl Eq for WordInfoError
Source§impl Error for WordInfoError
impl Error for WordInfoError
1.30.0 · 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()
Source§impl From<WordInfoError> for SudachiError
impl From<WordInfoError> for SudachiError
Source§fn from(source: WordInfoError) -> Self
fn from(source: WordInfoError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WordInfoError
impl PartialEq for WordInfoError
Source§fn eq(&self, other: &WordInfoError) -> bool
fn eq(&self, other: &WordInfoError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WordInfoError
Auto Trait Implementations§
impl Freeze for WordInfoError
impl RefUnwindSafe for WordInfoError
impl Send for WordInfoError
impl Sync for WordInfoError
impl Unpin for WordInfoError
impl UnsafeUnpin for WordInfoError
impl UnwindSafe for WordInfoError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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