1use super::{QuantumDecoder, QuantumEntry};
5use anyhow::Result;
6use std::io::Write;
7
8pub struct HexDecoder {
9 }
11
12impl Default for HexDecoder {
13 fn default() -> Self {
14 Self::new()
15 }
16}
17
18impl HexDecoder {
19 pub fn new() -> Self {
20 Self {}
21 }
22}
23
24impl QuantumDecoder for HexDecoder {
25 fn init(&mut self, _writer: &mut dyn Write) -> Result<()> {
26 Ok(())
28 }
29
30 fn decode_entry(&mut self, _entry: &QuantumEntry, _writer: &mut dyn Write) -> Result<()> {
31 Ok(())
33 }
34
35 fn finish(&mut self, _writer: &mut dyn Write) -> Result<()> {
36 Ok(())
38 }
39}