pub enum ComponentRole {
Container,
Content,
Control,
Input,
Navigation,
Feedback,
Display,
}Expand description
Semantic component roles.
Variants§
Implementations§
Source§impl ComponentRole
impl ComponentRole
pub fn is_interactive_role(self) -> bool
Trait Implementations§
Source§impl Clone for ComponentRole
impl Clone for ComponentRole
Source§fn clone(&self) -> ComponentRole
fn clone(&self) -> ComponentRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComponentRole
impl Debug for ComponentRole
Source§impl Hash for ComponentRole
impl Hash for ComponentRole
Source§impl Ord for ComponentRole
impl Ord for ComponentRole
Source§fn cmp(&self, other: &ComponentRole) -> Ordering
fn cmp(&self, other: &ComponentRole) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ComponentRole
impl PartialEq for ComponentRole
Source§fn eq(&self, other: &ComponentRole) -> bool
fn eq(&self, other: &ComponentRole) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ComponentRole
impl PartialOrd for ComponentRole
impl Copy for ComponentRole
impl Eq for ComponentRole
impl StructuralPartialEq for ComponentRole
Auto Trait Implementations§
impl Freeze for ComponentRole
impl RefUnwindSafe for ComponentRole
impl Send for ComponentRole
impl Sync for ComponentRole
impl Unpin for ComponentRole
impl UnsafeUnpin for ComponentRole
impl UnwindSafe for ComponentRole
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