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 { ... }
}
Reads Self
from reader
as little-endian bytes.
Returns Self
from a byte array in little-endian order.
Reads in an account address from a buffer.
Reads the boolean from a buffer.
Reads the field from a buffer.
Reads the group from a buffer.
Reads the powers from the buffer.
Reads the powers from the buffer.
Reads the scalar from a buffer.
Reads the string from a buffer.
Reads the integer from a buffer.
Reads in a Merkle path from a buffer.
Reads data into a buffer.
Reads the access from a buffer.
Reads the literal from a buffer.
Reads the plaintext from a buffer.
Reads the register from a buffer.
Reads the entry from a buffer.
Reads the finalize type from a buffer.
Reads a plaintext type from a buffer.
Reads the entry type from a buffer.
Reads the register type from a buffer.
Reads the value type from a buffer.
Reads the input ID from a buffer.
Reads an account compute key from a buffer.
Reads an account graph key from a buffer.
Reads an account private key from a buffer.
Reads an account signature from a buffer.
Reads an account view key from a buffer.
Reads the ciphertext from a buffer.
Reads in a future from a buffer.
Reads in an identifier from a buffer.
Reads a record type from a buffer.
Reads a struct type from a buffer.
Reads the program ID from a buffer.
Reads the locator from a buffer.
Reads the program owner from a buffer.
Reads the request from a buffer.
Reads the header leaf from a buffer.
Reads the path from a buffer.
Reads the transaction leaf from a buffer.
Reads the transition leaf from a buffer.
Reads the entry from a buffer.
Reads the owner from a buffer.
Reads the record from a buffer.
Reads in a Merkle path from a buffer.
Reads data into a buffer.
Reads self
from reader
in little-endian order.