pub struct Group { /* private fields */ }Expand description
One group of settings (docs/settings.md): a page on desktop (a toolbar tab, a dialog page, a sidebar entry) and a row of the mobile root list that pushes the page.
Implementations§
Source§impl Group
impl Group
Sourcepub fn new<M>(id: &'static str, title: impl IntoText<M>) -> Self
pub fn new<M>(id: &'static str, title: impl IntoText<M>) -> Self
A group with a route id (also its element id, prefs-group-<id>) and a localized title.
Sourcepub fn icon(self, icon: impl Into<GroupIcon>) -> Self
pub fn icon(self, icon: impl Into<GroupIcon>) -> Self
The glyph beside the title: a bundled vector (the same name a nav item takes) or a
standard day_spec::Symbol.
Sourcepub fn subtitle<M>(self, t: impl IntoText<M>) -> Self
pub fn subtitle<M>(self, t: impl IntoText<M>) -> Self
One line under the title in the mobile root list (“Units, data source”).
Sourcepub fn row(self, row: Row) -> Self
pub fn row(self, row: Row) -> Self
Append a row to the group’s trailing untitled section (created as needed).
Sourcepub fn custom<P: Piece>(self, build: impl Fn() -> P + 'static) -> Self
pub fn custom<P: Piece>(self, build: impl Fn() -> P + 'static) -> Self
A bespoke piece that is the whole group page (Skies’ city editor). Sections, if any, render above it.
Sourcepub fn order(self, order: i32) -> Self
pub fn order(self, order: i32) -> Self
Sort key: app groups keep declaration order at 0, providers default to 500, About is always last.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Group
impl !Send for Group
impl !Sync for Group
impl !UnwindSafe for Group
impl Freeze for Group
impl Unpin for Group
impl UnsafeUnpin for Group
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more