pub trait SerializeMinBEInt {
    // Required method
    fn to_be_bytes_min(self, max_value: Self) -> Result<Vec<u8>, ModelsError>;
}
Expand description

Serialize min big endian integer

Required Methods§

source

fn to_be_bytes_min(self, max_value: Self) -> Result<Vec<u8>, ModelsError>

serializes with the minimal amount of big endian bytes

Implementations on Foreign Types§

source§

impl SerializeMinBEInt for u64

source§

fn to_be_bytes_min(self, max_value: Self) -> Result<Vec<u8>, ModelsError>

source§

impl SerializeMinBEInt for u32

source§

fn to_be_bytes_min(self, max_value: Self) -> Result<Vec<u8>, ModelsError>

Implementors§