Skip to main content

Crate le_stream_derive

Crate le_stream_derive 

Source
Expand description

Derive macros for le-stream.

The macros implement le_stream::FromLeStream and le_stream::ToLeStream for structs and explicitly represented enums.

Struct fields are encoded in declaration order. Enum variants require #[repr(T)] and an explicit discriminant on every variant; the discriminant is encoded as T, followed by the byte representation of any associated fields.

Derive Macrosยง

FromLeStream
Derives le_stream::FromLeStream for a struct or represented enum.
ToLeStream
Derives le_stream::ToLeStream for a struct or represented enum.