pub fn tap_model(&mut self, model: &Model<TI>, outlet: OutletId) -> TractResult<OutletId> {
        let fact = model.outlet_fact(outlet)?;
        let node_id = self
            .add_source(format!("incoming-{}/{}", outlet.node, outlet.slot), objekt::clone(fact))?;
        let inside = OutletId::new(node_id, 0);
        self.incoming.insert(inside, outlet);
        Ok(inside)
    }
/// Draw a tap from a preexisting node.
///
/// returns an OutletId usable in the little "patch" model
Draw a tap from a preexisting node.
returns an OutletId usable in the little "patch" model
Draw a tap from a preexisting node . returns an OutletId usable in the little " patch " model
pub fn tap_model(&mut self, model: &Model<TI>, outlet: OutletId) -> TractResult<OutletId> {
        let fact = model.outlet_fact(outlet)?;
        let node_id = self
            .add_source(format!("incoming-{}/{}", outlet.node, outlet.slot), objekt::clone(fact))?;
        let inside = OutletId::new(node_id, 0);
        self.incoming.insert(inside, outlet);
        Ok(inside)
    }
pub fn tap_model ( & mut self , model : & Model < TI > , outlet : OutletId ) -> TractResult < OutletId > { let fact = model . outlet_fact ( outlet ) ? ; let node_id = self . add_source ( format ! ( " " outlet node outlet slot ) , objekt :: clone ( fact ) ) ? ; let inside = OutletId :: new ( node_id , 0 ) ; self . incoming . insert ( inside , outlet ) ; Ok ( inside ) }
Draw a tap from a preexisting node.
Draw a tap from a preexisting node .
&mut self
model
&Model<TI>
outlet
OutletId
&mut self
model
&Model<TI>
outlet
OutletId