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 copy 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 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
Source§impl PartialEq for SelectionGranularity
impl PartialEq for SelectionGranularity
Source§impl Serialize for SelectionGranularity
impl Serialize for SelectionGranularity
impl Copy for SelectionGranularity
impl Eq 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 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