Crate roopes_derive

Crate roopes_derive 

Source
Expand description

This crate implements macros supporting some patterns:

Derive Macros§

Builder
Creates a new type on the specified struct, which allows fields to be set one at a time. The new builder type’s name is the specified type, appended with “Builder”.
PubSub
Creates a Publisher and Subscriber for the given message type.
Visitor
Creates a new trait for user code to implement on the specified enum. This trait requires implementors to implement handlers for all the specified variants in the given enum.