[][src]Crate packing

Enums

BigEndian

Defines big endian bit shifting required for packing and unpacking non aligned fields in byte slices

Error

Enum of possible errors returned from packing functions

LittleEndian

Defines little endian bit shifting required for packing and unpacking non aligned fields in byte slices

Traits

Bit

Trait signifying a single bit in a byte. 7 = most significant bit, 0 = least significant bit

Cmp

A type operator for comparing Self and Rhs. It provides a similar functionality to the function core::cmp::Ord::cmp but for types.

Endian

Trait that covers functionality required to deal with non aligned endian sensitive fields in packed structs

IsGreaterOrEqual

A type operator that returns True if Self >= Rhs, otherwise returns False.

IsLess

A type operator that returns True if Self < Rhs, otherwise returns False.

IsLessOrEqual

A type operator that returns True if Self <= Rhs, otherwise returns False.

Packed

Trait that enables packing and unpacking to/from byte slices

PackedBytes

Trait that enables endian aware conversion to/from bytes for packable types

PackedSize
Unsigned

The marker trait for compile time unsigned integers.

Type Definitions

U0
U1
U2
U3
U4
U5
U6
U7
U8
U9
U10
U11
U12
U13
U14
U15
U16
U17
U18
U19
U20
U21
U22
U23
U24
U25
U26
U27
U28
U29
U30
U31
U32
U33
U34
U35
U36
U37
U38
U39
U40
U41
U42
U43
U44
U45
U46
U47
U48
U49
U50

Derive Macros

Packed

Derive for Packed