Trait massa_models::serialization::SerializeMinBEInt

source ·
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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SerializeMinBEInt for u32

source§

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

source§

impl SerializeMinBEInt for u64

source§

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

Implementors§