#[non_exhaustive]pub enum ZeroTrieBuildError {
NonAsciiError,
CapacityExceeded,
CouldNotSolvePerfectHash,
MixedCase,
}
Expand description
Error types for the zerotrie
crate.
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.
NonAsciiError
Non-ASCII data was added to an ASCII-only trie.
CapacityExceeded
The trie reached its maximum supported capacity.
CouldNotSolvePerfectHash
The builder could not solve the perfect hash function.
MixedCase
Mixed-case data was added to a case-insensitive trie.
Trait Implementations§
Source§impl Clone for ZeroTrieBuildError
impl Clone for ZeroTrieBuildError
Source§fn clone(&self) -> ZeroTrieBuildError
fn clone(&self) -> ZeroTrieBuildError
Returns a copy of the value. Read more
1.0.0 · 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 ZeroTrieBuildError
impl Debug for ZeroTrieBuildError
Source§impl Display for ZeroTrieBuildError
impl Display for ZeroTrieBuildError
Source§impl Error for ZeroTrieBuildError
impl Error for ZeroTrieBuildError
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 PartialEq for ZeroTrieBuildError
impl PartialEq for ZeroTrieBuildError
impl Copy for ZeroTrieBuildError
impl Eq for ZeroTrieBuildError
impl StructuralPartialEq for ZeroTrieBuildError
Auto Trait Implementations§
impl Freeze for ZeroTrieBuildError
impl RefUnwindSafe for ZeroTrieBuildError
impl Send for ZeroTrieBuildError
impl Sync for ZeroTrieBuildError
impl Unpin for ZeroTrieBuildError
impl UnwindSafe for ZeroTrieBuildError
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