utf-8 0.7.6
README badge
[](https://proofs.rs/crate/utf-8?version=0.7.6)Incremental, zero-copy UTF-8 decoding with error handling
Reports (1)
Findings (2)
| Finding | Status | Report | Links |
|---|---|---|---|
| Document state requirements for Incomplete::try_complete | Reported | #40 · v1 | — |
| Clarify retry behavior after a buffer fill error | Reported | #40 · v1 | — |
APIs (64)
APIClaims · findings
Functions
pub fn utf8::decode(input: &[u8]) -> Result<&str, DecodeError<'_>>—Associated functions
impl utf8::BufReadDecoder<B>
pub fn read_to_string_lossy(buf_read: B) -> io::Result<String>—impl utf8::Incomplete
impl utf8::LossyDecoder<F>
Methods
impl utf8::BufReadDecoder<B>
pub fn next_lossy(self: &mut Self) -> Option<io::Result<&str>>—pub fn next_strict(self: &mut Self) -> Option<Result<&str, BufReadDecoderError<'_>>>—impl utf8::BufReadDecoderError<'a>
pub fn lossy(self: Self) -> Result<&'static str, io::Error>—impl utf8::Incomplete
pub fn try_complete<'input>(self: &mut Self, input: &'input [u8]) -> Option<(Result<&str, &[u8]>, &'input [u8])>—impl utf8::LossyDecoder<F>
pub fn feed(self: &mut Self, input: &[u8])—Trait implementations
impl core::clone::Clone for …
fn clone2 implementations2 claims
impl core::error::Error for utf8::BufReadDecoderError<'a>
pub fn source(self: &Self) -> Option<&dyn Error + 'static>—impl core::fmt::Debug for …
impl core::fmt::Display for …
impl core::ops::drop::Drop for utf8::LossyDecoder<F>
pub fn drop(self: &mut Self)—