pub struct AccessibilitySpec {
pub name: Option<String>,
pub description: Option<String>,
pub role: AccessibleRole,
}Expand description
Accessible metadata of one widget.
Fields§
§name: Option<String>Accessible name announced by assistive technology. None means the
native mapping falls back to the control’s visible text where the
platform derives one.
description: Option<String>Optional longer description announced after the name (for example help text for an icon-only button).
role: AccessibleRoleRole derived from the widget kind when the widget was created.
Implementations§
Source§impl AccessibilitySpec
impl AccessibilitySpec
Sourcepub fn for_kind(kind: WidgetKind) -> Self
pub fn for_kind(kind: WidgetKind) -> Self
Creates the default metadata for a widget kind.
Trait Implementations§
Source§impl Clone for AccessibilitySpec
impl Clone for AccessibilitySpec
Source§impl Debug for AccessibilitySpec
impl Debug for AccessibilitySpec
impl Eq for AccessibilitySpec
Source§impl PartialEq for AccessibilitySpec
impl PartialEq for AccessibilitySpec
impl StructuralPartialEq for AccessibilitySpec
Auto Trait Implementations§
impl Forget for AccessibilitySpec
impl Freeze for AccessibilitySpec
impl Move for AccessibilitySpec
impl RefUnwindSafe for AccessibilitySpec
impl Send for AccessibilitySpecwhere
RawVecInner: Send,
impl Sync for AccessibilitySpecwhere
RawVecInner: Sync,
impl Unpin for AccessibilitySpec
impl UnsafeUnpin for AccessibilitySpec
impl UnwindSafe for AccessibilitySpecwhere
RawVecInner: UnwindSafe,
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