fn const_fn_for(&self, spanned: Span, id: Option<Id>) -> Result<Arc<QueryConstFn>, QueryError> {
        let const_fn = id.and_then(|n| self.const_fns.get(&n)).ok_or_else(|| {
            QueryError::new(
                spanned,
                QueryErrorKind::MissingId {
                    what: "constant function",
                    id,
                },
            )
        })?;

        Ok(const_fn.clone())
    }
/// Get the constant function associated with the opaque.
Get the constant function associated with the opaque.
Get the constant function associated with the opaque .
fn const_fn_for(&self, spanned: Span, id: Option<Id>) -> Result<Arc<QueryConstFn>, QueryError> {
        let const_fn = id.and_then(|n| self.const_fns.get(&n)).ok_or_else(|| {
            QueryError::new(
                spanned,
                QueryErrorKind::MissingId {
                    what: "constant function",
                    id,
                },
            )
        })?;
        Ok(const_fn.clone())
    }
fn const_fn_for ( & self , spanned : Span , id : Option < Id > ) -> Result < Arc < QueryConstFn > , QueryError > { let const_fn = id . and_then ( | n | self . const_fns . get ( & n ) ) . ok_or_else ( | | { QueryError :: new ( spanned , QueryErrorKind :: MissingId { what : " " , id , } , ) } ) ? ; Ok ( const_fn . clone ( ) ) }
Get the constant function associated with the opaque.
Get the constant function associated with the opaque .
&self
spanned
Span
id
Option<Id>
&self
spanned
Span
id
Option<Id>