var searchIndex = {}; searchIndex["utf8"] = {"doc":"","items":[[3,"Decoder","utf8","A low-level, zero-copy UTF-8 decoder with error handling.",null,null],[3,"LossyDecoder","","A push-based, lossy decoder for UTF-8.\nErrors are replaced with the U+FFFD replacement character.",null,null],[3,"InlineString","","Like `String`, but does not allocate memory and has a fixed capacity of 4 bytes.\nThis is used by `Decoder` to represent either the empty string or a single code point.",null,null],[4,"Result","","",null,null],[13,"Ok","","The input chunk is entirely well-formed.\nThe returned `&str` goes to its end.",0,null],[13,"Incomplete","","The end of the input chunk was reached in the middle of an UTF-8 sequence\nthat is valid so far.\nMore input (up to 3 more bytes) is required to decode that sequence.\nAt the end of the input, the sequence is ill-formed and this is a decoding error.",0,null],[13,"Error","","An ill-formed byte sequence was found. This is a decoding error.\nIf errors are not fatal, decoding should continue after handling the error\n(typically by appending a U+FFFD replacement character to the output)\nby calling `Decoder::decode` again with `remaining_input_after_error` as its argument.",0,null],[12,"remaining_input_after_error","utf8::Result","",0,null],[17,"REPLACEMENT_CHARACTER","utf8","The replacement character, U+FFFD. In lossy decoding, insert it for every decoding error.",null,null],[11,"new","","Create a new decoder.",1,{"inputs":[],"output":{"name":"decoder"}}],[11,"has_incomplete_sequence","","Return whether the input of the last call to `.decode()` returned `Result::Incomplete`.\nIf this is true and there is no more input, this is a decoding error.",1,null],[11,"decode","","Start decoding one chunk of input bytes. The return value is a tuple of:",1,null],[11,"clone","","",0,null],[11,"fmt","","",0,null],[11,"new","","Create a new decoder from a callback.",2,{"inputs":[{"name":"f"}],"output":{"name":"self"}}],[11,"feed","","Feed one chunk of input into the decoder.",2,null],[11,"drop","","",2,null],[11,"clone","","",3,null],[11,"deref","","",3,null],[11,"len","","Returns the length of `self`.",3,null],[11,"is_empty","","Returns true if this string has a length of zero bytes.",3,null]],"paths":[[4,"Result"],[3,"Decoder"],[3,"LossyDecoder"],[3,"InlineString"]]}; initSearch(searchIndex);