pub enum NoMatch {
Nothing,
Ambiguous(Vec<String>),
TooWeak {
best: String,
score: u8,
},
}Expand description
Why nothing was attached, which is worth saying rather than returning
None and letting the caller invent a reason.
Variants§
Nothing
The search came back with nothing at all.
Ambiguous(Vec<String>)
Several answers are equally good, and choosing between them would be arbitrary. Names are carried for display, with identifiers when names alone cannot distinguish the candidates.
TooWeak
The best answer is not close enough to the name asked about.
Trait Implementations§
impl Eq for NoMatch
impl StructuralPartialEq for NoMatch
Auto Trait Implementations§
impl Freeze for NoMatch
impl RefUnwindSafe for NoMatch
impl Send for NoMatch
impl Sync for NoMatch
impl Unpin for NoMatch
impl UnwindSafe for NoMatch
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