(&self, id: &[u8; 32])
| 9 | |
| 10 | impl BindingTxnT for WriteTxn<'_> { |
| 11 | fn get_binding_bytes(&self, id: &[u8; 32]) -> PristineResult<Option<Vec<u8>>> { |
| 12 | let table = self.txn.open_table(BINDINGS)?; |
| 13 | let value = table.get(id)?.map(|guard| guard.value().to_vec()); |
| 14 | Ok(value) |
| 15 | } |
| 16 | |
| 17 | fn iter_binding_ids(&self) -> PristineResult<Vec<[u8; 32]>> { |
| 18 | let table = self.txn.open_table(BINDINGS)?; |