Skip to main content

Module byteable_trait

Module byteable_trait 

Source

Structs§

BigEndian
A transparent wrapper that stores an EndianConvert value in big-endian byte order.
LittleEndian
A transparent wrapper that stores an EndianConvert value in little-endian byte order.

Enums§

DecodeError
Error returned when decoding bytes into a typed value fails.

Traits§

ByteArray
Marker trait for types that are fixed-size byte arrays.
EndianConvert
Marker trait for multi-byte primitive types that support byte-order conversion.
FromByteArray
Infallible conversion from a fixed-size byte array back into a value.
FromEndianRepr
Infallible conversion from a typed endian representation back to the native value.
FromRawRepr
Infallible conversion from a raw PlainOldData representation back into a value.
HasEndianRepr
Provides typed little-endian and big-endian representations for a type.
PlainOldData
Marker trait for types that can be safely transmuted to and from raw bytes.
RawRepr
Conversion of a value to its raw, PlainOldData representation.
ToByteArray
Conversion from a value into its fixed-size byte representation.
TryFromByteArray
Fallible conversion from a fixed-size byte array back into a value.
TryFromEndianRepr
Fallible conversion from a typed endian representation back to the native value.
TryFromRawRepr
Fallible conversion from a raw PlainOldData representation back into a value.