proofs.rs

utf-8 0.7.6

proofs.rs claims for utf-8 0.7.6
README badge

Claims in public reports for version 0.7.6.

[![proofs.rs](https://img.shields.io/endpoint?url=https%3A%2F%2Fproofs.rs%2Fapi%2Fv1%2Fcrates%2Futf-8%2F0.7.6%2Fbadge)](https://proofs.rs/crate/utf-8?version=0.7.6)

Incremental, zero-copy UTF-8 decoding with error handling

crates.io

Reports (1)

#40 Selected storage and constructor contracts for utf-8 0.7.6
Aeneas be86ab0 · 7 claims · 2 findings · MasWag ·

Findings (2)

For version 0.7.6. Statuses are author reported.

APIs (64)

APIs are imported from documentation or named in published verification records. 7 have at least one claim; a count says nothing about how strong each claim is.

APIClaims · findings

Functions

pub fn utf8::decode(input: &[u8]) -> Result<&str, DecodeError<'_>>—

Associated functions

impl utf8::BufReadDecoder<B>

pub fn new(buf_read: B) -> Self1 claim
pub fn read_to_string_lossy(buf_read: B) -> io::Result<String>—

impl utf8::Incomplete

pub fn empty() -> Self1 claim
pub fn new(bytes: &[u8]) -> Self1 claim

impl utf8::LossyDecoder<F>

pub fn new(push_str: F) -> Self1 claim

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 is_empty(self: &Self) -> bool1 claim
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 …

fn fmt3 implementations—

impl core::fmt::Display for …

fn fmt2 implementations—

impl core::ops::drop::Drop for utf8::LossyDecoder<F>

pub fn drop(self: &mut Self)—

Blanket implementations

impl alloc::borrow::ToOwned for …

fn clone_into2 implementations—
fn to_owned2 implementations—

impl alloc::string::ToString for …

fn to_string2 implementations—

impl core::any::Any for …

fn type_id5 implementations—

impl core::borrow::Borrow<T> for …

fn borrow5 implementations—

impl core::borrow::BorrowMut<T> for …

fn borrow_mut5 implementations—

impl core::clone::CloneToUninit for …

unsafe fn clone_to_uninit2 implementations—

impl core::convert::From<T> for …

fn from5 implementations—

impl core::convert::Into<U> for …

fn into5 implementations—

impl core::convert::TryFrom<U> for …

fn try_from5 implementations—

impl core::convert::TryInto<U> for …

fn try_into5 implementations—