Trait ToBytes
Source pub trait ToBytes {
// Required method
fn write_le<W>(&self, writer: W) -> Result<(), Error>
where W: Write,
Self: Sized;
// Provided method
fn to_bytes_le(&self) -> Result<Vec<u8>, Error>
where Self: Sized { ... }
}
Writes self
into writer
as little-endian bytes.
Returns self
as a byte array in little-endian order.
Writes the mode to the writer.
Writes the boolean to a buffer.
Writes the group to a buffer.
Writes the scalar to a buffer.
Writes the string to a buffer.
Writes the powers to the buffer.
Writes the powers to the buffer.
Writes the integer to a buffer.
Writes the Merkle path to a buffer.
Writes the data to a buffer.
Write the access to a buffer.
Writes the register to a buffer.
Writes the finalize type to a buffer.
Writes the register type to a buffer.
Writes the input ID to a buffer.
Writes the authority to the buffer.
Writes the ratify object to a buffer.
Writes the confirmed transaction to a buffer.
Writes the rejected transaction to a buffer.
Writes the input to a buffer.
Writes the output to a buffer.
Writes the batch certificate to the buffer.
Writes the transmission ID to the buffer.
Writes the transmission to the buffer.
Writes the command to a buffer.
Writes the operation to a buffer.
Writes the finalize operation to buffer.
Writes the operation to a buffer.
Writes the cast type to a buffer.
Writes an account compute key to a buffer.
Writes an account graph key to a buffer.
Writes a future to a buffer.
Writes the record type to a buffer.
Writes the struct type to a buffer.
Writes the request to a buffer.
Writes the header leaf to a buffer.
Writes the path to a buffer.
Writes the transaction leaf to a buffer.
Writes the transition leaf to a buffer.
Writes the metadata to the buffer.
Writes the block header to the buffer.
Writes the ratifications to a buffer.
Writes the fee to a buffer.
Writes the transactions to a buffer.
Writes the literal to a buffer.
Writes the solutions to the buffer.
Writes the epoch challenge to a buffer.
Writes the partial solution to the buffer.
Writes the prover solution to the buffer.
Writes the puzzle commitment to the buffer.
Writes the committee to the buffer.
Writes the batch header to the buffer.
Writes the subdag to the buffer.
Writes the authorization to a buffer.
Writes the import to a buffer.
Writes the operation to a buffer.
Writes the operation to a buffer.
Writes the operation to a buffer.
Writes the operation to a buffer.
Writes the command to a buffer.
Writes the operation to a buffer.
Writes the operation to a buffer.
Writes the operation to a buffer.
Writes the operation to a buffer.
Writes the operation to a buffer.
Writes the operation to a buffer.
Writes the mapping to a buffer.
Writes the certificate to a buffer.
Writes the universal SRS to a buffer.
Writes the prover file to a buffer.
Writes the verifier file to a buffer.
Writes the finalize to a buffer.
Writes the closure to a buffer.
Writes the function to a buffer.
Writes the operation to a buffer.
Writes the owner to a buffer.
Writes the command to a buffer.
Writes the operation to a buffer.
Writes the operation to a buffer.
Writes the operation to a buffer.
Writes the operation to a buffer.
Writes the operation to a buffer.
Writes the Merkle path to a buffer.
Writes the data to the buffer.
Writes the data to a buffer.
Writes self
to writer
in little-endian order.