proofs.rs

hex 0.4.3

proofs.rs claims for hex 0.4.3
README badge

Claims in public reports for version 0.4.3.

[![proofs.rs](https://img.shields.io/endpoint?url=https%3A%2F%2Fproofs.rs%2Fapi%2Fv1%2Fcrates%2Fhex%2F0.4.3%2Fbadge)](https://proofs.rs/crate/hex?version=0.4.3)

Encoding and decoding data into/from hexadecimal representation.

crates.io

Reports (1)

#1 Exact slice encoding, decoding and error behavior in the hex 0.4.3 fork
creusot 0.13.0 · 2 claims · nyuichi ·

Findings (0)

For version 0.4.3. Statuses are author reported.

No findings reported for this version.

APIs (191)

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

APIClaims · findings

Functions

pub fn decode<T: AsRef<[u8]>>(data: T) -> Result<alloc::vec::Vec<u8>, FromHexError>—
pub fn decode_to_slice<T: AsRef<[u8]>>(data: T, out: &mut [u8]) -> Result<(), FromHexError>1 claim
pub fn deserialize<'de, D, T>(deserializer: D) -> Result<T, <D as serde_core::de::Deserializer>::Error> where D: Deserializer<'de>, T: FromHex, <T as FromHex>::Error: fmt::Display—
pub fn encode<T: AsRef<[u8]>>(data: T) -> alloc::string::String—
pub fn encode_to_slice<T: AsRef<[u8]>>(input: T, output: &mut [u8]) -> Result<(), FromHexError>1 claim
pub fn encode_upper<T: AsRef<[u8]>>(data: T) -> alloc::string::String—
pub fn serde::deserialize<'de, D, T>(deserializer: D) -> Result<T, <D as serde_core::de::Deserializer>::Error> where D: Deserializer<'de>, T: FromHex, <T as FromHex>::Error: fmt::Display—
pub fn serde::serialize<S, T>(data: T, serializer: S) -> Result<<S as serde_core::ser::Serializer>::Ok, <S as serde_core::ser::Serializer>::Error> where S: Serializer, T: ToHex—
pub fn serde::serialize_upper<S, T>(data: T, serializer: S) -> Result<<S as serde_core::ser::Serializer>::Ok, <S as serde_core::ser::Serializer>::Error> where S: Serializer, T: ToHex—
pub fn serialize<S, T>(data: T, serializer: S) -> Result<<S as serde_core::ser::Serializer>::Ok, <S as serde_core::ser::Serializer>::Error> where S: Serializer, T: ToHex—
pub fn serialize_upper<S, T>(data: T, serializer: S) -> Result<<S as serde_core::ser::Serializer>::Ok, <S as serde_core::ser::Serializer>::Error> where S: Serializer, T: ToHex—

Associated functions

No associated functions.

Methods

No inherent methods.

Traits

trait FromHex

pub fn from_hex<T: AsRef<[u8]>>(hex: T) -> Result<Self, <Self as hex::FromHex>::Error>—

trait ToHex

pub fn encode_hex<T: iter::FromIterator<char>>(self: &Self) -> T—
pub fn encode_hex_upper<T: iter::FromIterator<char>>(self: &Self) -> T—

Trait implementations

impl core::clone::Clone for FromHexError

pub fn clone(self: &Self) -> FromHexError—

impl core::cmp::PartialEq for FromHexError

pub fn eq(self: &Self, other: &FromHexError) -> bool—

impl core::fmt::Debug for FromHexError

pub fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result—

impl core::fmt::Display for FromHexError

pub fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result—

impl hex::FromHex for …

fn from_hex160 implementations—

impl hex::ToHex for T

pub fn encode_hex<U: iter::FromIterator<char>>(self: &Self) -> U—
pub fn encode_hex_upper<U: iter::FromIterator<char>>(self: &Self) -> U—

Blanket implementations

impl alloc::borrow::ToOwned for FromHexError

pub fn clone_into(self: &Self, target: &mut T)—
pub fn to_owned(self: &Self) -> T—

impl alloc::string::ToString for FromHexError

pub fn to_string(self: &Self) -> String—

impl core::any::Any for FromHexError

pub fn type_id(self: &Self) -> TypeId—

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

pub fn borrow(self: &Self) -> &T—

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

pub fn borrow_mut(self: &mut Self) -> &mut T—

impl core::clone::CloneToUninit for FromHexError

pub unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)—

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

pub fn from(t: T) -> T—

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

pub fn into(self: Self) -> U—

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

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>—

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

pub fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>—