pub trait HasUnsignedVersion {
    type Unsigned;
    type LeBytes;

    fn to_le_bytes(self) -> Self::LeBytes;
    fn from_le_bytes(bytes: Self::LeBytes) -> Self;
}
Expand description

Helper trait for efficient calculations in other implementations

Required Associated Types

which unsigned type corresponds to this type?

Type returned by self.to_le_bytes(). Depends on how many bytes are needed, to represent the number

Required Methods

to little endian. See implementation for integers in the standard library

from little endian. See implementation for integers in the standard library

Implementations on Foreign Types

Implementors