pub struct ComboboxText {
pub list: String,
pub empty: String,
}Expand description
The words Combobox::render names the list with and shows when no
option matches.
They are English until replaced, so a page in another language passes its own:
use hypersig_ui::ComboboxText;
let japanese = ComboboxText {
list: "候補".into(),
empty: "一致する候補はありません".into(),
};
assert_ne!(japanese, ComboboxText::default());Fields§
§list: StringThe name of the list of options, “Suggestions”.
empty: StringShown in place of the list when no option matches, “No matches”.
Trait Implementations§
Source§impl Clone for ComboboxText
impl Clone for ComboboxText
Source§fn clone(&self) -> ComboboxText
fn clone(&self) -> ComboboxText
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComboboxText
impl Debug for ComboboxText
Source§impl Default for ComboboxText
impl Default for ComboboxText
impl Eq for ComboboxText
Source§impl PartialEq for ComboboxText
impl PartialEq for ComboboxText
impl StructuralPartialEq for ComboboxText
Auto Trait Implementations§
impl Freeze for ComboboxText
impl RefUnwindSafe for ComboboxText
impl Send for ComboboxText
impl Sync for ComboboxText
impl Unpin for ComboboxText
impl UnsafeUnpin for ComboboxText
impl UnwindSafe for ComboboxText
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