Skip to main content

AnyElementSemanticsExt

Trait AnyElementSemanticsExt 

Source
pub trait AnyElementSemanticsExt {
    // Required methods
    fn a11y(self, decoration: SemanticsDecoration) -> AnyElement;
    fn a11y_role(self, role: SemanticsRole) -> AnyElement;
    fn role(self, role: SemanticsRole) -> AnyElement;
    fn a11y_label(self, label: impl Into<Arc<str>>) -> AnyElement;
    fn test_id(self, id: impl Into<Arc<str>>) -> AnyElement;
    fn a11y_value(self, value: impl Into<Arc<str>>) -> AnyElement;
    fn a11y_disabled(self, disabled: bool) -> AnyElement;
    fn a11y_selected(self, selected: bool) -> AnyElement;
    fn a11y_expanded(self, expanded: bool) -> AnyElement;
    fn a11y_checked(self, checked: Option<bool>) -> AnyElement;
}

Required Methods§

Source

fn a11y(self, decoration: SemanticsDecoration) -> AnyElement

Source

fn a11y_role(self, role: SemanticsRole) -> AnyElement

Source

fn role(self, role: SemanticsRole) -> AnyElement

Source

fn a11y_label(self, label: impl Into<Arc<str>>) -> AnyElement

Source

fn test_id(self, id: impl Into<Arc<str>>) -> AnyElement

Source

fn a11y_value(self, value: impl Into<Arc<str>>) -> AnyElement

Source

fn a11y_disabled(self, disabled: bool) -> AnyElement

Source

fn a11y_selected(self, selected: bool) -> AnyElement

Source

fn a11y_expanded(self, expanded: bool) -> AnyElement

Source

fn a11y_checked(self, checked: Option<bool>) -> AnyElement

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§