fn item_for(&self, span: Span, id: Option<Id>) -> Result<Arc<CompileItem>, QueryError> {
        let item = id
            .and_then(|n| self.items.get(&n))
            .ok_or_else(|| QueryError::new(span, QueryErrorKind::MissingId { what: "item", id }))?;

        Ok(item.clone())
    }
/// Get the item for the given identifier.
Get the item for the given identifier.
Get the item for the given identifier .
fn item_for(&self, span: Span, id: Option<Id>) -> Result<Arc<CompileItem>, QueryError> {
        let item = id
            .and_then(|n| self.items.get(&n))
            .ok_or_else(|| QueryError::new(span, QueryErrorKind::MissingId { what: "item", id }))?;
        Ok(item.clone())
    }
fn item_for ( & self , span : Span , id : Option < Id > ) -> Result < Arc < CompileItem > , QueryError > { let item = id . and_then ( | n | self . items . get ( & n ) ) . ok_or_else ( | | QueryError :: new ( span , QueryErrorKind :: MissingId { what : " " , id } ) ) ? ; Ok ( item . clone ( ) ) }
Get the item for the given identifier.
Get the item for the given identifier .
&self
span
Span
id
Option<Id>
&self
span
Span
id
Option<Id>