pub struct InputTraits {
pub secure: bool,
pub read_only: bool,
pub purpose: InputPurpose,
pub submit_label: SubmitLabel,
pub max_length: Option<u32>,
}Expand description
How a text field takes its text (docs/textfield.md): the whole set travels together through
Toolkit::set_input_traits, so a backend that has to rebuild the widget for one member
has every other member in hand to dress the replacement.
Fields§
§secure: boolHide the characters (a password field).
read_only: boolShow and select the text, take no edits.
purpose: InputPurpose§submit_label: SubmitLabel§max_length: Option<u32>The most characters (Unicode scalar values) the field takes; None is unbounded.
day-pieces holds the bound on every backend. A toolkit applies its native limit as well
only where that limit counts the same unit (GTK): one that counts UTF-16 units would
refuse characters the bound allows.
Trait Implementations§
Source§impl Clone for InputTraits
impl Clone for InputTraits
Source§fn clone(&self) -> InputTraits
fn clone(&self) -> InputTraits
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 InputTraits
impl Debug for InputTraits
Source§impl Default for InputTraits
impl Default for InputTraits
Source§fn default() -> InputTraits
fn default() -> InputTraits
Returns the “default value” for a type. Read more
impl Eq for InputTraits
Source§impl PartialEq for InputTraits
impl PartialEq for InputTraits
impl StructuralPartialEq for InputTraits
Auto Trait Implementations§
impl Freeze for InputTraits
impl RefUnwindSafe for InputTraits
impl Send for InputTraits
impl Sync for InputTraits
impl Unpin for InputTraits
impl UnsafeUnpin for InputTraits
impl UnwindSafe for InputTraits
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