pub struct HarvestIndex {
pub cues: BTreeMap<String, CueHarvest>,
pub spans: BTreeMap<String, SpanHarvest>,
}Expand description
The project-wide harvest index (issue #2114): every @NAME cue payload
and every inline-markup span kind/attribute name, keyed by name so
completion crosses files — the compiler-side sibling of
crate::SymbolIndex.
Fields§
§cues: BTreeMap<String, CueHarvest>§spans: BTreeMap<String, SpanHarvest>Implementations§
Source§impl HarvestIndex
impl HarvestIndex
Sourcepub fn names(&self) -> HarvestNames
pub fn names(&self) -> HarvestNames
Project this index down to the range-free name sets a completion
consumer needs (issue #2134) — see HarvestNames’s doc for why the
projection exists. Backdates across any edit that shifts a site’s
range without adding or removing a name/attribute.
Trait Implementations§
Source§impl Clone for HarvestIndex
impl Clone for HarvestIndex
Source§fn clone(&self) -> HarvestIndex
fn clone(&self) -> HarvestIndex
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 HarvestIndex
impl Debug for HarvestIndex
Source§impl Default for HarvestIndex
impl Default for HarvestIndex
Source§fn default() -> HarvestIndex
fn default() -> HarvestIndex
Returns the “default value” for a type. Read more
impl Eq for HarvestIndex
Source§impl PartialEq for HarvestIndex
impl PartialEq for HarvestIndex
impl StructuralPartialEq for HarvestIndex
Auto Trait Implementations§
impl Freeze for HarvestIndex
impl RefUnwindSafe for HarvestIndex
impl Send for HarvestIndex
impl Sync for HarvestIndex
impl Unpin for HarvestIndex
impl UnsafeUnpin for HarvestIndex
impl UnwindSafe for HarvestIndex
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§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.