#[non_exhaustive]pub struct AccessibleText {
pub name: String,
pub description: Option<String>,
pub renamed: bool,
}Expand description
The name and the description screen readers get for a field or an action.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringWhat it is called.
description: Option<String>What is said after the name. With none, the control keeps what it has, such as the hint of a field.
renamed: boolThe name is not the caption on the screen.
Implementations§
Trait Implementations§
Source§impl Clone for AccessibleText
impl Clone for AccessibleText
Source§fn clone(&self) -> AccessibleText
fn clone(&self) -> AccessibleText
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 AccessibleText
impl Debug for AccessibleText
impl Eq for AccessibleText
Source§impl PartialEq for AccessibleText
impl PartialEq for AccessibleText
impl StructuralPartialEq for AccessibleText
Auto Trait Implementations§
impl Freeze for AccessibleText
impl RefUnwindSafe for AccessibleText
impl Send for AccessibleText
impl Sync for AccessibleText
impl Unpin for AccessibleText
impl UnsafeUnpin for AccessibleText
impl UnwindSafe for AccessibleText
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more