diff options
author | 2024-03-08 13:34:36 +0100 | |
---|---|---|
committer | 2024-03-08 13:34:36 +0100 | |
commit | 288025f5143f4e3f8bc5af36e86f7afa7f07a4c7 (patch) | |
tree | e187f94cc74915f686a4b7cefd0984f4de6eae83 /widget/src/combo_box.rs | |
parent | 7161cb40c7a9fbda84ee61060a109b93416b2ea0 (diff) | |
download | iced-288025f5143f4e3f8bc5af36e86f7afa7f07a4c7.tar.gz iced-288025f5143f4e3f8bc5af36e86f7afa7f07a4c7.tar.bz2 iced-288025f5143f4e3f8bc5af36e86f7afa7f07a4c7.zip |
Inline helper functions in `widget` modules
Diffstat (limited to 'widget/src/combo_box.rs')
-rw-r--r-- | widget/src/combo_box.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/widget/src/combo_box.rs b/widget/src/combo_box.rs index 933a0fac..bddf2789 100644 --- a/widget/src/combo_box.rs +++ b/widget/src/combo_box.rs @@ -717,8 +717,7 @@ where } } -/// Search list of options for a given query. -pub fn search<'a, T, A>( +fn search<'a, T, A>( options: impl IntoIterator<Item = T> + 'a, option_matchers: impl IntoIterator<Item = &'a A> + 'a, query: &'a str, @@ -745,8 +744,7 @@ where }) } -/// Build matchers from given list of options. -pub fn build_matchers<'a, T>( +fn build_matchers<'a, T>( options: impl IntoIterator<Item = T> + 'a, ) -> Vec<String> where @@ -769,6 +767,8 @@ pub struct Style<Theme> { pub text_input: fn(&Theme, text_input::Status) -> text_input::Appearance, /// The style of the [`Menu`] of the [`ComboBox`]. + /// + /// [`Menu`]: menu::Menu pub menu: menu::Style<Theme>, } |