pub struct RankedCompletionSymbol {
pub symbol: VisibleSymbol,
pub tier: CompletionRankTier,
}Expand description
A completion symbol with a ranking tier derived from semantic visibility.
Follows the fallback policy table (Req 22.5):
- Exact → rank high
- Ambiguous → rank lower
- Dynamic/Unavailable → show low or omit
Fields§
§symbol: VisibleSymbolThe visible symbol from the semantic path.
tier: CompletionRankTierRanking tier for completion sort order.
Trait Implementations§
Source§impl Clone for RankedCompletionSymbol
impl Clone for RankedCompletionSymbol
Source§fn clone(&self) -> RankedCompletionSymbol
fn clone(&self) -> RankedCompletionSymbol
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RankedCompletionSymbol
impl Debug for RankedCompletionSymbol
impl Eq for RankedCompletionSymbol
Source§impl PartialEq for RankedCompletionSymbol
impl PartialEq for RankedCompletionSymbol
Source§fn eq(&self, other: &RankedCompletionSymbol) -> bool
fn eq(&self, other: &RankedCompletionSymbol) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RankedCompletionSymbol
Auto Trait Implementations§
impl Freeze for RankedCompletionSymbol
impl RefUnwindSafe for RankedCompletionSymbol
impl Send for RankedCompletionSymbol
impl Sync for RankedCompletionSymbol
impl Unpin for RankedCompletionSymbol
impl UnsafeUnpin for RankedCompletionSymbol
impl UnwindSafe for RankedCompletionSymbol
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.