[−][src]Trait funty::IsNumber
Declare that a type is an abstract number.
This unifies all of the signed-integer, unsigned-integer, and floating-point types.
Associated Types
type Bytes
Required methods
fn to_be_bytes(self) -> Self::Bytes
Return the memory representation of this number as a byte array in big-endian (network) byte order.
fn to_le_bytes(self) -> Self::Bytes
Return the memory representation of this number as a byte array in little-endian byte order.
fn to_ne_bytes(self) -> Self::Bytes
Return the memory representation of this number as a byte array in native byte order.
fn from_be_bytes(bytes: Self::Bytes) -> Self
Create a numeric value from its representation as a byte array in big endian.
fn from_le_bytes(bytes: Self::Bytes) -> Self
Create a numeric value from its representation as a byte array in little endian.
fn from_ne_bytes(bytes: Self::Bytes) -> Self
Create a numeric value from its memory representation as a byte array in native endianness.