pub struct AccessibilityInfo { /* private fields */ }Expand description
Query result for accessibility information about a widget.
Implementations§
Source§impl AccessibilityInfo
impl AccessibilityInfo
pub fn new(role: Role, name: Option<String>, actions: Vec<Action>) -> Self
pub fn with_toggled(self, toggled: bool) -> Self
pub fn with_expanded(self, expanded: bool) -> Self
pub fn with_selected(self, selected: bool) -> Self
pub fn with_disabled(self, disabled: bool) -> Self
pub fn role(&self) -> Role
pub fn name(&self) -> Option<&str>
pub fn actions(&self) -> &[Action]
pub fn is_toggled(&self) -> bool
pub fn is_expanded(&self) -> bool
pub fn is_selected(&self) -> bool
pub fn is_disabled(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AccessibilityInfo
impl RefUnwindSafe for AccessibilityInfo
impl Send for AccessibilityInfo
impl Sync for AccessibilityInfo
impl Unpin for AccessibilityInfo
impl UnsafeUnpin for AccessibilityInfo
impl UnwindSafe for AccessibilityInfo
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