pub fn existing_hir<I>(&self, id: I) -> Result<<HirTable<'ctx> as NodeStorage<I>>::Node>
    where
        I: Copy + Debug,
        HirTable<'ctx>: NodeStorage<I>,
        <HirTable<'ctx> as NodeStorage<I>>::Node: Copy + Debug,
    {
        match self.sb.hir_table.borrow().get(&id) {
            Some(&node) => Ok(node),
            None => {
                self.emit(DiagBuilder2::bug(format!("hir for {:?} should exist", id)));
                Err(())
            }
        }
    }
/// Obtain the HIR of a node. Returns an error if none exists.
Obtain the HIR of a node. Returns an error if none exists.
Obtain the HIR of a node . Returns an error if none exists .
pub fn existing_hir<I>(&self, id: I) -> Result<<HirTable<'ctx> as NodeStorage<I>>::Node>
    where
        I: Copy + Debug,
        HirTable<'ctx>: NodeStorage<I>,
        <HirTable<'ctx> as NodeStorage<I>>::Node: Copy + Debug,
    {
        match self.sb.hir_table.borrow().get(&id) {
            Some(&node) => Ok(node),
            None => {
                self.emit(DiagBuilder2::bug(format!("hir for {:?} should exist", id)));
                Err(())
            }
        }
    }
pub fn existing_hir < I > ( & self , id : I ) -> Result < < HirTable < ' ctx > as NodeStorage < I > > :: Node > where I : Copy + Debug , HirTable < ' ctx > : NodeStorage < I > , < HirTable < ' ctx > as NodeStorage < I > > :: Node : Copy + Debug , { match self . sb . hir_table . borrow ( ) . get ( & id ) { Some ( & node ) => Ok ( node ) , None => { self . emit ( DiagBuilder2 :: bug ( format ! ( " " id ) ) ) ; Err ( ( ) ) } } }
Obtain the HIR of a node.
Obtain the HIR of a node .
&self
id
I
&self
id
I