Skip to main content

Module prelude

Module prelude 

Source
Expand description

What an app’s root() and settings module import: the declaration types, the handle, the row constructors as a module, and the General group.

Re-exports§

pub use crate::APPEARANCE;
pub use crate::About;
pub use crate::Appearance;
pub use crate::Group;
pub use crate::LANGUAGE;
pub use crate::Preferences;
pub use crate::Prefs;
pub use crate::Presentation;
pub use crate::Providers;
pub use crate::Row;
pub use crate::Section;
pub use crate::appearance_row;
pub use crate::general_group;
pub use crate::language_row;
pub use crate::rows;

Macros§

pref_enum
Declare an enum that round-trips through the store under short stable tags:

Structs§

Pref
A typed, persisted, reactive setting (docs/settings.md), declared once as a static:

Traits§

PrefValue
A value a Pref can hold: encoded to one string in the store and back. Implemented for the plain scalars and strings; enums get it from pref_enum!.