pub struct DialogText {
pub close: String,
}Expand description
The words Dialog::dialog and Dialog::sheet name their close button with.
They are English until replaced, so a page in another language passes its own:
use hypersig_ui::DialogText;
let japanese = DialogText {
close: "閉じる".into(),
};
assert_ne!(japanese, DialogText::default());Fields§
§close: StringThe name of the button in the corner, “Close”.
Trait Implementations§
Source§impl Clone for DialogText
impl Clone for DialogText
Source§fn clone(&self) -> DialogText
fn clone(&self) -> DialogText
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 DialogText
impl Debug for DialogText
Source§impl Default for DialogText
impl Default for DialogText
impl Eq for DialogText
Source§impl PartialEq for DialogText
impl PartialEq for DialogText
impl StructuralPartialEq for DialogText
Auto Trait Implementations§
impl Freeze for DialogText
impl RefUnwindSafe for DialogText
impl Send for DialogText
impl Sync for DialogText
impl Unpin for DialogText
impl UnsafeUnpin for DialogText
impl UnwindSafe for DialogText
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