pub enum SemanticRole {
Show 21 variants
Display,
Input,
Navigation,
Container,
Progress,
Selection,
DataVisualization,
Decoration,
Action,
Scrollable,
Modal,
Menu,
Toolbar,
Tab,
TreeNode,
Canvas,
Media,
System,
Diagnostic,
Configuration,
Custom,
}Expand description
The semantic role a widget plays in the UI.
Variants§
Display
Displays text or data to the user (read-only).
Input
Accepts user input (text fields, checkboxes, sliders, etc.).
Provides navigation between views or sections.
Container
Contains and arranges other widgets.
Progress
Indicates progress or loading state.
Selection
Displays a selection from a set of options.
DataVisualization
Provides interactive data visualization.
Decoration
A decorative or structural element (borders, spacers).
Action
An interactive button or action trigger.
Scrollable
A scrollable region.
Modal
A modal dialog or overlay.
Menu
A menu or menu item.
Toolbar
A toolbar or toolbar item.
Tab
A tab or tab bar.
TreeNode
A tree node in a hierarchical view.
Canvas
A canvas or drawing area.
Media
A media element (image, video, audio).
System
A system-level service (i18n, plugins, window management, theme).
Diagnostic
A diagnostic or metrics component (profiling, performance).
Configuration
A platform integration component (dialogs, tray, file system).
Custom
An unknown or custom role.
Trait Implementations§
Source§impl Clone for SemanticRole
impl Clone for SemanticRole
Source§fn clone(&self) -> SemanticRole
fn clone(&self) -> SemanticRole
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SemanticRole
impl Debug for SemanticRole
Source§impl<'de> Deserialize<'de> for SemanticRole
impl<'de> Deserialize<'de> for SemanticRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for SemanticRole
impl Display for SemanticRole
Source§impl Hash for SemanticRole
impl Hash for SemanticRole
Source§impl PartialEq for SemanticRole
impl PartialEq for SemanticRole
Source§fn eq(&self, other: &SemanticRole) -> bool
fn eq(&self, other: &SemanticRole) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SemanticRole
impl Serialize for SemanticRole
impl Copy for SemanticRole
impl Eq for SemanticRole
impl StructuralPartialEq for SemanticRole
Auto Trait Implementations§
impl Freeze for SemanticRole
impl RefUnwindSafe for SemanticRole
impl Send for SemanticRole
impl Sync for SemanticRole
impl Unpin for SemanticRole
impl UnsafeUnpin for SemanticRole
impl UnwindSafe for SemanticRole
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more