Skip to main content

Crate tightbeam_derive

Crate tightbeam_derive 

Source
Expand description

Derive macros for TightBeam message, flag, and error types.

  • #[derive(Beamable)] implements the Message trait for a struct.
  • #[derive(Flaggable)] implements the u8 conversion and comparison of a flag enum.
  • #[derive(Errorizable)] implements Display, Error, and From for an error enum.

Derive Macrosยง

Beamable
Derive macro that implements Message for a struct.
Errorizable
Derive macro for the error traits of an enum.
Flaggable
Derive macro for a TightBeam flag enum.