#[repr(C)]pub enum StyleUserSelect {
Auto = 0,
Text = 1,
None = 2,
All = 3,
}Expand description
Controls whether the user can select text. Used to prevent accidental text selection on UI controls like buttons.
Variants§
Auto = 0
Browser determines selectability (default)
Text = 1
Text is selectable
None = 2
Text is not selectable
All = 3
User can select all text with a single action
Trait Implementations§
Source§impl Clone for StyleUserSelect
impl Clone for StyleUserSelect
Source§fn clone(&self) -> StyleUserSelect
fn clone(&self) -> StyleUserSelect
Returns a duplicate of the value. Read more
1.0.0 · 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 StyleUserSelect
impl Debug for StyleUserSelect
Source§impl Default for StyleUserSelect
impl Default for StyleUserSelect
Source§impl FormatAsRustCode for StyleUserSelect
impl FormatAsRustCode for StyleUserSelect
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<StyleUserSelect> for CssProperty
impl From<StyleUserSelect> for CssProperty
Source§fn from(value: StyleUserSelect) -> Self
fn from(value: StyleUserSelect) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleUserSelect
impl Hash for StyleUserSelect
Source§impl Ord for StyleUserSelect
impl Ord for StyleUserSelect
Source§fn cmp(&self, other: &StyleUserSelect) -> Ordering
fn cmp(&self, other: &StyleUserSelect) -> Ordering
1.21.0 · 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 StyleUserSelect
impl PartialEq for StyleUserSelect
Source§impl PartialOrd for StyleUserSelect
impl PartialOrd for StyleUserSelect
Source§impl PrintAsCssValue for StyleUserSelect
impl PrintAsCssValue for StyleUserSelect
fn print_as_css_value(&self) -> String
impl Copy for StyleUserSelect
impl Eq for StyleUserSelect
impl StructuralPartialEq for StyleUserSelect
Auto Trait Implementations§
impl Freeze for StyleUserSelect
impl RefUnwindSafe for StyleUserSelect
impl Send for StyleUserSelect
impl Sync for StyleUserSelect
impl Unpin for StyleUserSelect
impl UnwindSafe for StyleUserSelect
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