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