pub trait ArrayDecoding {
    type Output: ArrayEncoding + Integer;

    // Required methods
    fn into_uint_be(self) -> Self::Output;
    fn into_uint_le(self) -> Self::Output;
}
Expand description

Support for decoding a GenericArray as a big integer.

Required Associated Types§

source

type Output: ArrayEncoding + Integer

Big integer which decodes a GenericArray.

Required Methods§

source

fn into_uint_be(self) -> Self::Output

Deserialize from a big-endian GenericArray.

source

fn into_uint_le(self) -> Self::Output

Deserialize from a little-endian GenericArray.

Implementations on Foreign Types§

source§

impl ArrayDecoding for GenericArray<u8, U8>

§

type Output = UInt<{nlimbs!($bits)}>

source§

fn into_uint_be(self) -> Self::Output

source§

fn into_uint_le(self) -> Self::Output

source§

impl ArrayDecoding for GenericArray<u8, U16>

§

type Output = UInt<{nlimbs!($bits)}>

source§

fn into_uint_be(self) -> Self::Output

source§

fn into_uint_le(self) -> Self::Output

source§

impl ArrayDecoding for GenericArray<u8, U24>

§

type Output = UInt<{nlimbs!($bits)}>

source§

fn into_uint_be(self) -> Self::Output

source§

fn into_uint_le(self) -> Self::Output

source§

impl ArrayDecoding for GenericArray<u8, U32>

§

type Output = UInt<{nlimbs!($bits)}>

source§

fn into_uint_be(self) -> Self::Output

source§

fn into_uint_le(self) -> Self::Output

source§

impl ArrayDecoding for GenericArray<u8, U48>

§

type Output = UInt<{nlimbs!($bits)}>

source§

fn into_uint_be(self) -> Self::Output

source§

fn into_uint_le(self) -> Self::Output

source§

impl ArrayDecoding for GenericArray<u8, U56>

§

type Output = UInt<{nlimbs!($bits)}>

source§

fn into_uint_be(self) -> Self::Output

source§

fn into_uint_le(self) -> Self::Output

source§

impl ArrayDecoding for GenericArray<u8, U64>

§

type Output = UInt<{nlimbs!($bits)}>

source§

fn into_uint_be(self) -> Self::Output

source§

fn into_uint_le(self) -> Self::Output

source§

impl ArrayDecoding for GenericArray<u8, U72>

§

type Output = UInt<{nlimbs!($bits)}>

source§

fn into_uint_be(self) -> Self::Output

source§

fn into_uint_le(self) -> Self::Output

source§

impl ArrayDecoding for GenericArray<u8, U96>

§

type Output = UInt<{nlimbs!($bits)}>

source§

fn into_uint_be(self) -> Self::Output

source§

fn into_uint_le(self) -> Self::Output

source§

impl ArrayDecoding for GenericArray<u8, U112>

§

type Output = UInt<{nlimbs!($bits)}>

source§

fn into_uint_be(self) -> Self::Output

source§

fn into_uint_le(self) -> Self::Output

source§

impl ArrayDecoding for GenericArray<u8, U128>

§

type Output = UInt<{nlimbs!($bits)}>

source§

fn into_uint_be(self) -> Self::Output

source§

fn into_uint_le(self) -> Self::Output

source§

impl ArrayDecoding for GenericArray<u8, U192>

§

type Output = UInt<{nlimbs!($bits)}>

source§

fn into_uint_be(self) -> Self::Output

source§

fn into_uint_le(self) -> Self::Output

source§

impl ArrayDecoding for GenericArray<u8, U224>

§

type Output = UInt<{nlimbs!($bits)}>

source§

fn into_uint_be(self) -> Self::Output

source§

fn into_uint_le(self) -> Self::Output

source§

impl ArrayDecoding for GenericArray<u8, U256>

§

type Output = UInt<{nlimbs!($bits)}>

source§

fn into_uint_be(self) -> Self::Output

source§

fn into_uint_le(self) -> Self::Output

source§

impl ArrayDecoding for GenericArray<u8, U384>

§

type Output = UInt<{nlimbs!($bits)}>

source§

fn into_uint_be(self) -> Self::Output

source§

fn into_uint_le(self) -> Self::Output

source§

impl ArrayDecoding for GenericArray<u8, U448>

§

type Output = UInt<{nlimbs!($bits)}>

source§

fn into_uint_be(self) -> Self::Output

source§

fn into_uint_le(self) -> Self::Output

source§

impl ArrayDecoding for GenericArray<u8, U512>

§

type Output = UInt<{nlimbs!($bits)}>

source§

fn into_uint_be(self) -> Self::Output

source§

fn into_uint_le(self) -> Self::Output

source§

impl ArrayDecoding for GenericArray<u8, U768>

§

type Output = UInt<{nlimbs!($bits)}>

source§

fn into_uint_be(self) -> Self::Output

source§

fn into_uint_le(self) -> Self::Output

source§

impl ArrayDecoding for GenericArray<u8, U1024>

§

type Output = UInt<{nlimbs!($bits)}>

source§

fn into_uint_be(self) -> Self::Output

source§

fn into_uint_le(self) -> Self::Output

Implementors§