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.
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Writes the powers to the buffer.
Writes the powers to the buffer.
Writes the Merkle path to a buffer.
Writes the data to a buffer.
Writes an account compute key to a buffer.
Writes an account graph key to a buffer.
Writes an account private key to a buffer.
Writes an account view key to a buffer.
Writes the Merkle path to a buffer.
Writes the data to a buffer.
Writes self to writer in little-endian order.