(self)
| 94 | /// Returns the string matched by this decoder (once it's ready) |
| 95 | /// |
| 96 | #[inline] fn to_string(self) -> Result<String, DecoderError> { |
| 97 | match self.string_encoding { |
| 98 | PartialResult::FullMatch(string) => Ok(string), |
| 99 | PartialResult::MatchMore(_) => Err(DecoderError::NotReady) |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | /// |
| 104 | /// Decodes a single character and returns the new state of the decoder |
no outgoing calls