pub enum SelectionGranularity {
Point,
Word,
Line,
}Expand description
The smallest unit of text that a gesture can select
Variants§
Point
Selects any point or character range
Word
Selects one word at a time
Line
Selects one line at a time
Trait Implementations§
Source§impl Clone for SelectionGranularity
impl Clone for SelectionGranularity
Source§fn clone(&self) -> SelectionGranularity
fn clone(&self) -> SelectionGranularity
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 moreimpl Copy for SelectionGranularity
Source§impl Debug for SelectionGranularity
impl Debug for SelectionGranularity
Source§impl<'de> Deserialize<'de> for SelectionGranularity
impl<'de> Deserialize<'de> for SelectionGranularity
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
impl Eq for SelectionGranularity
Source§impl PartialEq for SelectionGranularity
impl PartialEq for SelectionGranularity
Source§fn eq(&self, other: &SelectionGranularity) -> bool
fn eq(&self, other: &SelectionGranularity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SelectionGranularity
impl Serialize for SelectionGranularity
impl StructuralPartialEq for SelectionGranularity
Auto Trait Implementations§
impl Freeze for SelectionGranularity
impl RefUnwindSafe for SelectionGranularity
impl Send for SelectionGranularity
impl Sync for SelectionGranularity
impl Unpin for SelectionGranularity
impl UnsafeUnpin for SelectionGranularity
impl UnwindSafe for SelectionGranularity
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