pbc_zk_core

Trait FromToBits

source
pub trait FromToBits {
    type BitsType;

    // Required methods
    fn to_le_bits(self) -> Self::BitsType;
    fn from_le_bits(bits: Self::BitsType) -> Self;
}
Expand description

Exposes interface for splitting elements into an array of its composite bits.

Required Associated Types§

source

type BitsType

Bit-array type.

Required Methods§

source

fn to_le_bits(self) -> Self::BitsType

Converts Self to the bits array type.

source

fn from_le_bits(bits: Self::BitsType) -> Self

Converts from an array of bits to Self.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl FromToBits for Sbi<i8>

Allows conversions from Sbi<i8> to array of bits and back.

source§

impl FromToBits for Sbi<i16>

Allows conversions from Sbi<i16> to array of bits and back.

source§

impl FromToBits for Sbi<i32>

Allows conversions from Sbi<i32> to array of bits and back.

source§

impl FromToBits for Sbi<i64>

Allows conversions from Sbi<i64> to array of bits and back.

source§

impl FromToBits for Sbi<i128>

Allows conversions from Sbi<i128> to array of bits and back.

source§

impl FromToBits for Sbi<u8>

Allows conversions from Sbi<u8> to array of bits and back.

source§

impl FromToBits for Sbi<u16>

Allows conversions from Sbi<u16> to array of bits and back.

source§

impl FromToBits for Sbi<u32>

Allows conversions from Sbi<u32> to array of bits and back.

source§

impl FromToBits for Sbi<u64>

Allows conversions from Sbi<u64> to array of bits and back.

source§

impl FromToBits for Sbi<u128>

Allows conversions from Sbi<u128> to array of bits and back.