Crate picomenu

Crate picomenu 

Source

Macros§

outwriteln
Macro allows you to write formatted text using an Output handle.

Structs§

Output
An Output handle is provided to Command callbacks to enable them to write outputs.

Enums§

IoDeviceError
These are errors that an IoDevice may throw when it is requested to perform an operation.
MenuError
Possible errors that the Menu might encounter while running.

Traits§

Command
Commands for a menu are specified by providing structs that implement the Command trait. This allows the menu to understand how to implement the command.
IoDevice
A struct that implements the IoDevice trait allows a menu to interact with the outside world. This is by providing it with inputs and a way for it to deliver outputs.
Menu
You probably don’t want to implement this trait yourself! This trait is used to make the internal structure of the Menu opaque to the user which is useful for implementing the builder pattern in the way it has been done here.

Functions§

make_menu
Returns an empty Menu that can be extended/customized using the relevant trait functions.