( buf: &mut &[u8], rev: &NameReverseIndex, )
| 773 | Indexed(&'a NameIndex), |
| 774 | Raw, |
| 775 | } |
| 776 | |
| 777 | /// Decoding counterpart of [`NamePut`]. |
| 778 | #[derive(Clone, Copy)] |
| 779 | pub enum NameGet<'a> { |
| 780 | Indexed(&'a NameReverseIndex), |
| 781 | Raw, |
| 782 | } |
| 783 | |
| 784 | pub(super) fn put_idx( |
| 785 | addr: &Address, |
| 786 | idx: NamePut<'_>, |
| 787 | buf: &mut Vec<u8>, |
| 788 | ) -> Result<(), String> { |
no test coverage detected