(&self, idx: u16)
| 79 | } |
| 80 | |
| 81 | pub fn get_utf8(&self, idx: u16) -> Option<&Vec<u8>> { |
| 82 | match self.constants.get(idx as usize) { |
| 83 | Some(constant) => match constant { |
| 84 | &Constant::Utf8(ref bytes) => Some(bytes), |
| 85 | _ => None |
| 86 | }, |
| 87 | _ => None |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | pub fn get_utf8_string(&self, idx: u16) -> Option<String> { |
| 92 | match self.get_utf8(idx) { |