(&mut self, input: &mut &'a [u8], length: usize)
| 101 | |
| 102 | impl<'a, T: Decode<'a>> View<'a> for OptionDecoder<'a, T> { |
| 103 | fn populate(&mut self, input: &mut &'a [u8], length: usize) -> Result<()> { |
| 104 | self.variants.populate(input, length)?; |
| 105 | self.some.populate(input, self.variants.length(1)) |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | impl<'a, T: Decode<'a>> Decoder<'a, Option<T>> for OptionDecoder<'a, T> { |