Docs.rs
  • array-bytes-6.2.2
    • array-bytes 6.2.2
    • Docs.rs crate page
    • Apache-2.0/GPL-3.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • aurexav
    • Dependencies
      • serde ^1.0 normal
      • criterion ^0.5 dev
      • faster-hex ^0.9 dev
      • hex ^0.4 dev
      • rustc-hex ^2.1 dev
      • serde ^1.0 dev
      • serde_json ^1.0 dev
    • Versions
    • 100% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate array_bytes

array_bytes6.2.2

  • All Items
  • Enums
  • Traits
  • Functions
  • Type Aliases

Crates

  • array_bytes
?
Change settings

Crate array_bytes

source ·
Expand description

A collection of array/bytes/hex utilities.

Completely optimized for blockchain development. Especially the Substrate.

Enums

  • Error
    The main error of array-bytes.

Traits

  • Hex
    Convert the given type to hex.
  • TryFromHex
    Try to convert the given hex to a specific type.

Functions

  • bytes2hex
    AsRef<[u8]> to String.
  • hex2array
    Just like hex2bytes but to a fixed length array.
  • hex2array_unchecked
    Just like hex2array but without the checking.
  • hex2bytes
    AsRef<[u8]> to Vec<u8>.
  • hex2bytes_unchecked
    Just like hex2bytes but without checking.
  • hex2slice
    AsRef<[u8]> to &[u8].
  • hex2slice_unchecked
    Just like hex2slice but without checking.
  • hex_bytes2hex_str
    Convert hex bytes to hex string.
  • hex_bytes2hex_str_unchecked⚠
    Just like hex_bytes2hex_str but without the checking.
  • hex_into
    Try to convert AsRef<[u8]> to T directly, where T: From<Vec<u8>>.
  • hex_into_unchecked
    Just like hex_into but without the checking.
  • hex_n_into
    Try to convert AsRef<[u8]> to T directly, where T: From<[u8; N]>.
  • hex_n_into_unchecked
    Just like hex_n_into but without the checking.
  • prefix_with
    Prefixes the given element to the given array/slice/vector to make it a fixed-size array of length N.
  • slice2array
    &[T] to [T; N].
  • slice2array_unchecked
    Just like slice2array but without the checking.
  • slice_n_into
    Convert &[T] to a type directly.
  • slice_n_into_unchecked
    Just like slice_n_into but without the checking.
  • suffix_with
    Suffixes the given element to the given array/slice/vector to make it a fixed-size array of length N.
  • vec2array
    Vec<T> to [T; N].
  • vec2array_unchecked
    Just like vec2array but without the checking.
  • vec_n_into
    Convert Vec<T> to a type directly.
  • vec_n_into_unchecked
    Just like vec_n_into but without the checking.

Type Aliases

  • Result
    The main result of array-bytes.

Results

Query parser error: "Unexpected - (did you mean ->?)".