pub trait FromBytes {
    // Required method
    fn read_le<R>(reader: R) -> Result<Self, Error>
       where R: Read,
             Self: Sized;

    // Provided method
    fn from_bytes_le(bytes: &[u8]) -> Result<Self, Error>
       where Self: Sized { ... }
}

Required Methods§

source

fn read_le<R>(reader: R) -> Result<Self, Error>
where R: Read, Self: Sized,

Reads Self from reader as little-endian bytes.

Provided Methods§

source

fn from_bytes_le(bytes: &[u8]) -> Result<Self, Error>
where Self: Sized,

Returns Self from a byte array in little-endian order.

Implementations on Foreign Types§

source§

impl FromBytes for SocketAddr

source§

fn read_le<R>(reader: R) -> Result<SocketAddr, Error>
where R: Read,

source§

impl FromBytes for bool

source§

fn read_le<R>(reader: R) -> Result<bool, Error>
where R: Read,

source§

impl FromBytes for i8

source§

fn read_le<R>(reader: R) -> Result<i8, Error>
where R: Read,

source§

impl FromBytes for i16

source§

fn read_le<R>(reader: R) -> Result<i16, Error>
where R: Read,

source§

impl FromBytes for i32

source§

fn read_le<R>(reader: R) -> Result<i32, Error>
where R: Read,

source§

impl FromBytes for i64

source§

fn read_le<R>(reader: R) -> Result<i64, Error>
where R: Read,

source§

impl FromBytes for i128

source§

fn read_le<R>(reader: R) -> Result<i128, Error>
where R: Read,

source§

impl FromBytes for u8

source§

fn read_le<R>(reader: R) -> Result<u8, Error>
where R: Read,

source§

impl FromBytes for u16

source§

fn read_le<R>(reader: R) -> Result<u16, Error>
where R: Read,

source§

impl FromBytes for u32

source§

fn read_le<R>(reader: R) -> Result<u32, Error>
where R: Read,

source§

impl FromBytes for u64

source§

fn read_le<R>(reader: R) -> Result<u64, Error>
where R: Read,

source§

impl FromBytes for u128

source§

fn read_le<R>(reader: R) -> Result<u128, Error>
where R: Read,

source§

impl FromBytes for ()

source§

fn read_le<R>(_bytes: R) -> Result<(), Error>
where R: Read,

source§

impl<L, R> FromBytes for (L, R)
where L: FromBytes, R: FromBytes,

source§

fn read_le<Reader>(reader: Reader) -> Result<(L, R), Error>
where Reader: Read,

source§

impl<P> FromBytes for Fp2<P>
where P: Fp2Parameters,

source§

fn read_le<R>(reader: R) -> Result<Fp2<P>, Error>
where R: Read,

source§

impl<P> FromBytes for Fp6<P>
where P: Fp6Parameters,

source§

fn read_le<R>(reader: R) -> Result<Fp6<P>, Error>
where R: Read,

source§

impl<P> FromBytes for Fp12<P>
where P: Fp12Parameters,

source§

fn read_le<R>(reader: R) -> Result<Fp12<P>, Error>
where R: Read,

source§

impl<P> FromBytes for Fp256<P>
where P: Fp256Parameters,

source§

fn read_le<R>(reader: R) -> Result<Fp256<P>, Error>
where R: Read,

source§

impl<P> FromBytes for Fp384<P>
where P: Fp384Parameters,

source§

fn read_le<R>(reader: R) -> Result<Fp384<P>, Error>
where R: Read,

§

impl<P> FromBytes for Affine<P>

§

fn read_le<R>(reader: R) -> Result<Affine<P>, Error>
where R: Read,

§

impl<P> FromBytes for Affine<P>
where P: ShortWeierstrassParameters,

§

fn read_le<R>(reader: R) -> Result<Affine<P>, Error>
where R: Read,

§

impl<P> FromBytes for G1Prepared<P>
where P: Bls12Parameters,

§

fn read_le<R>(reader: R) -> Result<G1Prepared<P>, Error>
where R: Read,

§

impl<P> FromBytes for G2Prepared<P>
where P: Bls12Parameters,

§

fn read_le<R>(reader: R) -> Result<G2Prepared<P>, Error>
where R: Read,

§

impl<P> FromBytes for Projective<P>

§

fn read_le<R>(reader: R) -> Result<Projective<P>, Error>
where R: Read,

§

impl<P> FromBytes for Projective<P>
where P: ShortWeierstrassParameters,

§

fn read_le<R>(reader: R) -> Result<Projective<P>, Error>
where R: Read,

source§

impl<const N: usize> FromBytes for [u8; N]

source§

fn read_le<R>(reader: R) -> Result<[u8; N], Error>
where R: Read,

source§

impl<const N: usize> FromBytes for [u16; N]

source§

fn read_le<R>(reader: R) -> Result<[u16; N], Error>
where R: Read,

source§

impl<const N: usize> FromBytes for [u32; N]

source§

fn read_le<R>(reader: R) -> Result<[u32; N], Error>
where R: Read,

source§

impl<const N: usize> FromBytes for [u64; N]

source§

fn read_le<R>(reader: R) -> Result<[u64; N], Error>
where R: Read,

Implementors§

source§

impl FromBytes for BigInteger256

source§

impl FromBytes for BigInteger384

§

impl<E> FromBytes for Boolean<E>
where E: Environment,

§

impl<E> FromBytes for Field<E>
where E: Environment,

§

impl<E> FromBytes for Group<E>
where E: Environment,

§

impl<E> FromBytes for Scalar<E>
where E: Environment,

§

impl<E, I> FromBytes for Integer<E, I>
where E: Environment, I: IntegerType,