Enum utf8::Result
[−]
[src]
pub enum Result<'a> {
Ok,
Error {
remaining_input_after_error: &'a [u8],
},
Incomplete,
}Variants
OkThe input is entirely well-formed
ErrorThere is a decoding error. Each such error should be represented as one U+FFFD replacement character in lossy decoding.
Fields
remaining_input_after_error: &'a [u8] |
IncompleteThe end of the input was reached in the middle of an UTF-8 sequence that is valid so far. More input (up to 3 more bytes) is required to determine if it is well-formed. If at the end of the input, this is a decoding error.
Trait Implementations
impl<'a> Clone for Result<'a>[src]
fn clone(&self) -> Result<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more