Trait AccessibilityExt

Source
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<NodeId>>) -> 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<NodeId>) -> Self { ... }
    fn a11y_role(self, a11y_role: impl Into<Role>) -> Self { ... }
    fn a11y_alt(self, value: impl Into<Box<str>>) -> Self { ... }
    fn a11y_builder(self, with: impl FnOnce(&mut Node)) -> Self { ... }
}

Required Methods§

Provided Methods§

Source

fn accessibility(self, accessibility: AccessibilityData) -> Self

Source

fn a11y_id(self, a11y_id: impl Into<Option<NodeId>>) -> Self

Source

fn a11y_focusable(self, a11y_focusable: impl Into<Focusable>) -> Self

Source

fn a11y_auto_focus(self, a11y_auto_focus: impl Into<bool>) -> Self

Source

fn a11y_member_of(self, a11y_member_of: impl Into<NodeId>) -> Self

Source

fn a11y_role(self, a11y_role: impl Into<Role>) -> Self

Source

fn a11y_alt(self, value: impl Into<Box<str>>) -> Self

Source

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.

Implementors§