| 61 | } |
| 62 | |
| 63 | pub trait Decoded: ToTokens { |
| 64 | fn width(&self) -> usize; |
| 65 | fn tokens(&self, symbols: &Index) -> Vec<Token> { |
| 66 | let mut stream = TokenStream::new(); |
| 67 | self.tokenize(&mut stream, symbols); |
| 68 | stream.inner |
| 69 | } |
| 70 | fn update_rel_addrs(&mut self, addr: usize, prev_inst: Option<&Self>); |
| 71 | } |
| 72 | |
| 73 | pub trait Decodable { |
| 74 | type Instruction: Decoded; |
nothing calls this directly
no outgoing calls
no test coverage detected