pub enum LexicalQueryError {
Empty,
FuzzyDistance {
requested: u32,
maximum: u32,
},
InvalidPhoneticUtf8,
EmptyPhoneticCode,
}Expand description
A malformed structured lexical query.
Variants§
Empty
A term, phrase, or prefix that must be non-empty was empty.
FuzzyDistance
Fuzzy edit distance exceeded the pinned maximum.
InvalidPhoneticUtf8
A phonetic query was not UTF-8.
EmptyPhoneticCode
The phonetic query contained no encodable letters.
Trait Implementations§
Source§impl Clone for LexicalQueryError
impl Clone for LexicalQueryError
Source§impl Debug for LexicalQueryError
impl Debug for LexicalQueryError
Source§impl Display for LexicalQueryError
impl Display for LexicalQueryError
impl Eq for LexicalQueryError
Source§impl Error for LexicalQueryError
impl Error for LexicalQueryError
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<LexicalQueryError> for StoreLexicalError
impl From<LexicalQueryError> for StoreLexicalError
Source§fn from(error: LexicalQueryError) -> Self
fn from(error: LexicalQueryError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LexicalQueryError
impl PartialEq for LexicalQueryError
impl StructuralPartialEq for LexicalQueryError
Auto Trait Implementations§
impl Freeze for LexicalQueryError
impl RefUnwindSafe for LexicalQueryError
impl Send for LexicalQueryError
impl Sync for LexicalQueryError
impl Unpin for LexicalQueryError
impl UnsafeUnpin for LexicalQueryError
impl UnwindSafe for LexicalQueryError
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