pub enum ResolveOutcome {
Literal(String),
One(String),
Unknown(String),
Ambiguous {
token: String,
candidates: Vec<Contact>,
},
}Expand description
Resolution outcome for a single token.
Variants§
Literal(String)
Token had no @ prefix; passed through verbatim.
One(String)
Token matched exactly one contact.
Unknown(String)
Token matched zero contacts.
Ambiguous
Token matched more than one contact (most recent first, capped at 8).
Trait Implementations§
Source§impl Clone for ResolveOutcome
impl Clone for ResolveOutcome
Source§impl Debug for ResolveOutcome
impl Debug for ResolveOutcome
impl Eq for ResolveOutcome
Source§impl PartialEq for ResolveOutcome
impl PartialEq for ResolveOutcome
impl StructuralPartialEq for ResolveOutcome
Auto Trait Implementations§
impl Freeze for ResolveOutcome
impl RefUnwindSafe for ResolveOutcome
impl Send for ResolveOutcome
impl Sync for ResolveOutcome
impl Unpin for ResolveOutcome
impl UnsafeUnpin for ResolveOutcome
impl UnwindSafe for ResolveOutcome
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.