pub trait AccessibilityExt: Sized {
// Required method
fn get_accessibility_data(&mut self) -> &mut AccessibilityData;
// Provided methods
fn accessibility(self, accessibility: AccessibilityData) -> Self { ... }
fn a11y_id(self, a11y_id: impl Into<Option<AccessibilityId>>) -> Self { ... }
fn a11y_focusable(self, a11y_focusable: impl Into<Focusable>) -> Self { ... }
fn a11y_auto_focus(self, a11y_auto_focus: impl Into<bool>) -> Self { ... }
fn a11y_member_of(self, a11y_member_of: impl Into<AccessibilityId>) -> Self { ... }
fn a11y_role(self, a11y_role: impl Into<AccessibilityRole>) -> Self { ... }
fn a11y_alt(self, value: impl Into<Box<str>>) -> Self { ... }
fn a11y_builder(self, with: impl FnOnce(&mut Node)) -> Self { ... }
}Required Methods§
fn get_accessibility_data(&mut self) -> &mut AccessibilityData
Provided Methods§
fn accessibility(self, accessibility: AccessibilityData) -> Self
fn a11y_id(self, a11y_id: impl Into<Option<AccessibilityId>>) -> Self
fn a11y_focusable(self, a11y_focusable: impl Into<Focusable>) -> Self
fn a11y_auto_focus(self, a11y_auto_focus: impl Into<bool>) -> Self
fn a11y_member_of(self, a11y_member_of: impl Into<AccessibilityId>) -> Self
fn a11y_role(self, a11y_role: impl Into<AccessibilityRole>) -> Self
fn a11y_alt(self, value: impl Into<Box<str>>) -> Self
fn a11y_builder(self, with: impl FnOnce(&mut Node)) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.