[][src]Crate sbp

Macros

parsable_bitflags

Declare a bitflags struct that can be parsed and serialized.

Structs

BasicOutOfSpaceError

An error indicating that an insufficient amount of bytes were available when parsing or serializing.

Be

A parser for parsing unsigned and signed integers, stored in big-endian.

Le

A parser for parsing unsigned and signed integers, stored in little-endian.

Repeat

A parser that repeats the same parser multiple times.

Take

A parser that takes an arbitrary amount of bytes.

Enums

ParseBitflagsError

An error caused by either an insufficient byte count, or an invalid bitmask.

Traits

DeriveError
OutOfSpaceError

An error that may be caused by insufficient bytes.

Parse

A type that can parse itself.

ParseKnownSize

A type that can parse itself, and with a static size.

Parser

Represents a parser that can parse a sequency of bytes into a meaningful type.

ParserKnownSize

A parser which size is known at compile time.

Serialize

A type that can serialize itself.

SerializeKnownLength

A type that can serialize itself and has a static raw size.

Serializer

A serializer that can serialize a type into raw bytes.

SerializerKnownLength

A type which requires a static (known at compile-time) amount of bytes for serializing to.

Functions

align

Align a number to an alignment, by rounding upwards.

Attribute Macros

sbp

A procedural macro for declaring compound structures that can be parsed and serialized.