(self)
| 168 | /// Returns the string matched by this decoder (once it's ready) |
| 169 | /// |
| 170 | #[inline] fn to_bytes(self) -> Result<Vec<u8>, DecoderError> { |
| 171 | match self.byte_encoding { |
| 172 | PartialResult::FullMatch(bytes) => Ok(bytes), |
| 173 | PartialResult::MatchMore(_) => Err(DecoderError::NotReady) |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | /// |
| 178 | /// Decodes a single character and returns the new state of the decoder |
no outgoing calls
no test coverage detected