pub struct Semantics {
pub role: Role,
pub label: Option<String>,
pub value: Option<String>,
}Expand description
The accessibility description a widget reports about itself.
Return one from Widget::semantics to
place the widget in the projection.
Fields§
§role: RoleThe kind of control the widget is.
label: Option<String>The accessible name: what a screen reader announces first.
value: Option<String>The current value: for a text field its content, for a label its text.
Implementations§
Trait Implementations§
impl Eq for Semantics
impl StructuralPartialEq for Semantics
Auto Trait Implementations§
impl Forget for Semantics
impl Freeze for Semantics
impl Move for Semantics
impl RefUnwindSafe for Semantics
impl Send for Semantics
impl Sync for Semantics
impl Unpin for Semantics
impl UnsafeUnpin for Semantics
impl UnwindSafe for Semantics
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