fn query_meta(
        &mut self,
        span: Span,
        item: &Item,
        used: Used,
    ) -> Result<Option<CompileMeta>, QueryError> {
        if let Some(meta) = self.meta.get(item) {
            return Ok(Some(meta.clone()));
        }

        // See if there's an index entry we can construct and insert.
        let entry = match self.remove_indexed(span, item)? {
            Some(entry) => entry,
            None => return Ok(None),
        };

        let meta = self.build_indexed_entry(span, entry, used)?;

        self.unit
            .insert_meta(&meta)
            .map_err(|error| QueryError::new(span, error))?;

        self.insert_meta(span, meta.clone())?;
        Ok(Some(meta))
    }
/// Query for the given meta by looking up the reverse of the specified
/// item.
Query for the given meta by looking up the reverse of the specified
item.
Query for the given meta by looking up the reverse of the specified item .
fn query_meta(
        &mut self,
        span: Span,
        item: &Item,
        used: Used,
    ) -> Result<Option<CompileMeta>, QueryError> {
        if let Some(meta) = self.meta.get(item) {
            return Ok(Some(meta.clone()));
        }
        // See if there's an index entry we can construct and insert.
        let entry = match self.remove_indexed(span, item)? {
            Some(entry) => entry,
            None => return Ok(None),
        };
        let meta = self.build_indexed_entry(span, entry, used)?;
        self.unit
            .insert_meta(&meta)
            .map_err(|error| QueryError::new(span, error))?;
        self.insert_meta(span, meta.clone())?;
        Ok(Some(meta))
    }
fn query_meta ( & mut self , span : Span , item : & Item , used : Used , ) -> Result < Option < CompileMeta > , QueryError > { if let Some ( meta ) = self . meta . get ( item ) { return Ok ( Some ( meta . clone ( ) ) ) ; } // See if there's an index entry we can construct and insert. let entry = match self . remove_indexed ( span , item ) ? { Some ( entry ) => entry , None => return Ok ( None ) , } ; let meta = self . build_indexed_entry ( span , entry , used ) ? ; self . unit . insert_meta ( & meta ) . map_err ( | error | QueryError :: new ( span , error ) ) ? ; self . insert_meta ( span , meta . clone ( ) ) ? ; Ok ( Some ( meta ) ) }
Query for the given meta by looking up the reverse of the specified
item.
Query for the given meta by looking up the reverse of the specified item .
&mut self
span
Span
item
&Item
used
Used
&mut self
span
Span
item
&Item
used
Used