SerializeMinBEInt

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§