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