pub enum UserSelect {
Auto,
None,
Text,
All,
}Expand description
Text selection behavior.
Controls whether and how users can select text content.
Variants§
Auto
Default selection behavior. This is the default.
None
Prevent text selection.
Text
Allow text selection.
All
Select all text on click.
Trait Implementations§
Source§impl Arbitrary for UserSelect
impl Arbitrary for UserSelect
Source§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = BoxedStrategy<UserSelect>
type Strategy = BoxedStrategy<UserSelect>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(
args_shared: <Self as Arbitrary>::Parameters,
) -> Self::Strategy
fn arbitrary_with( args_shared: <Self as Arbitrary>::Parameters, ) -> Self::Strategy
Source§impl Clone for UserSelect
impl Clone for UserSelect
Source§fn clone(&self) -> UserSelect
fn clone(&self) -> UserSelect
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 UserSelect
impl Debug for UserSelect
Source§impl Default for UserSelect
impl Default for UserSelect
Source§fn default() -> UserSelect
fn default() -> UserSelect
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserSelect
impl<'de> Deserialize<'de> for UserSelect
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for UserSelect
impl Display for UserSelect
Source§impl PartialEq for UserSelect
impl PartialEq for UserSelect
Source§fn eq(&self, other: &UserSelect) -> bool
fn eq(&self, other: &UserSelect) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UserSelect
impl Serialize for UserSelect
impl Copy for UserSelect
impl Eq for UserSelect
impl StructuralPartialEq for UserSelect
Auto Trait Implementations§
impl Freeze for UserSelect
impl RefUnwindSafe for UserSelect
impl Send for UserSelect
impl Sync for UserSelect
impl Unpin for UserSelect
impl UnsafeUnpin for UserSelect
impl UnwindSafe for UserSelect
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