pub struct SettingsRows<'a, Msg> { /* private fields */ }Expand description
Adds headings and rows to a SettingsList inside SettingsList::show.
Implementations§
Source§impl<Msg: 'static> SettingsRows<'_, Msg>
impl<Msg: 'static> SettingsRows<'_, Msg>
Sourcepub fn env(&self) -> &Env
pub fn env(&self) -> &Env
The environment the list is drawn in: the active theme, language and icons, for rows that show them.
Sourcepub fn row(
&mut self,
row: SettingRow<Msg>,
control: impl FnOnce(&mut View<'_, Msg>),
)
pub fn row( &mut self, row: SettingRow<Msg>, control: impl FnOnce(&mut View<'_, Msg>), )
Adds row with the one control built by control (a switch, a select, a segmented control,
a value text). Give the control no focus handling of its own: the list takes focus as
one control and passes keys to the selected row.
Auto Trait Implementations§
impl<'a, Msg> !RefUnwindSafe for SettingsRows<'a, Msg>
impl<'a, Msg> !Send for SettingsRows<'a, Msg>
impl<'a, Msg> !Sync for SettingsRows<'a, Msg>
impl<'a, Msg> !UnwindSafe for SettingsRows<'a, Msg>
impl<'a, Msg> Freeze for SettingsRows<'a, Msg>
impl<'a, Msg> Unpin for SettingsRows<'a, Msg>
impl<'a, Msg> UnsafeUnpin for SettingsRows<'a, Msg>
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> 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