(&self, id: NodeId)
| 507 | type Adj = std::vec::IntoIter<Result<crate::types::SerializedGraphEdge, PristineError>>; |
| 508 | |
| 509 | fn get_external(&self, id: NodeId) -> Result<Option<Hash>, PristineError> { |
| 510 | if self.fail_external == Some(id) { |
| 511 | return Err(PristineError::Inconsistent { |
| 512 | message: "scripted get_external failure".to_string(), |
| 513 | }); |
| 514 | } |
| 515 | Ok(self.externals.get(&id).copied()) |
| 516 | } |
| 517 | |
| 518 | fn get_internal(&self, _hash: &Hash) -> Result<Option<NodeId>, PristineError> { |
| 519 | Ok(None) |