Enum keshvar::SearchError
source · pub enum SearchError {
NotFound {
searched_items: SearchedItems,
},
NoItemToSearch(&'static str),
BadInput {
expected: &'static str,
},
}Expand description
Error enum for different search errors.
Variants§
NotFound
Fields
§
searched_items: SearchedItemsWhen no entry is found.
NoItemToSearch(&'static str)
When there were nothing to search (e.g. no subdivision is loaded but you are trying to search in subdivisions!)
BadInput
When the input size, etc. is wrong.
Trait Implementations§
source§impl Clone for SearchError
impl Clone for SearchError
source§fn clone(&self) -> SearchError
fn clone(&self) -> SearchError
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 SearchError
impl Debug for SearchError
source§impl Display for SearchError
impl Display for SearchError
source§impl Error for SearchError
impl Error for SearchError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 SearchError
impl PartialEq for SearchError
source§fn eq(&self, other: &SearchError) -> bool
fn eq(&self, other: &SearchError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for SearchError
impl StructuralPartialEq for SearchError
Auto Trait Implementations§
impl RefUnwindSafe for SearchError
impl Send for SearchError
impl Sync for SearchError
impl Unpin for SearchError
impl UnwindSafe for SearchError
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