crypto_bigint::prelude

Trait ArrayDecoding

source
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>

source§

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>

source§

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>

source§

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>

source§

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>

source§

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>

source§

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>

source§

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>

source§

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>

source§

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, U104>

source§

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>

source§

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>

source§

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>

source§

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>

source§

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>

source§

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>

source§

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>

source§

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>

source§

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>

source§

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>

source§

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

source§

fn into_uint_be(self) -> Self::Output

source§

fn into_uint_le(self) -> Self::Output

Implementors§