Trait ToBytesPadded

Source
pub trait ToBytesPadded {
    // Required method
    fn to_bytes_padded(&self, length: usize) -> Vec<u8> ;
}
Expand description

Trait to convert types to padded byte vectors.

Required Methods§

Source

fn to_bytes_padded(&self, length: usize) -> Vec<u8>

Converts the type to a byte vector padded to the given length.

§Arguments
  • length - The desired length of the resulting byte vector.

Implementations on Foreign Types§

Source§

impl ToBytesPadded for BigInt

Source§

fn to_bytes_padded(&self, length: usize) -> Vec<u8>

Implementors§