Refactor display settings builders
Closed this issue · 0 comments
kunerd commented
remove closures in .set_*
methods, by using either:
- the builders directly via reference:
.set_entry_mode(EntryModeBuilder::default().set_move_direction(...))
- a public struct: https://play.rust-lang.org/?gist=5555953cc7b2421c281b65adb1fb9d45&version=stable
- an enum for all settings:
display.set(Function::EntryMode{...})
display.set(Function::DisplayControl{...})