pub enum TextGranularity {
Character,
Word,
Paragraph,
Line,
Document,
}Expand description
The unit of how selection handles move in text.
Variants§
Character
Each character is an atomic unit.
Word
A word is an atomic unit.
Paragraph
A paragraph is an atomic unit.
Line
Each line break is an atomic unit.
Document
The entire document is an atomic unit.
Trait Implementations§
Source§impl Clone for TextGranularity
impl Clone for TextGranularity
impl Copy for TextGranularity
Source§impl Debug for TextGranularity
impl Debug for TextGranularity
impl Eq for TextGranularity
Source§impl PartialEq for TextGranularity
impl PartialEq for TextGranularity
impl StructuralPartialEq for TextGranularity
Auto Trait Implementations§
impl Forget for TextGranularity
impl Freeze for TextGranularity
impl Move for TextGranularity
impl RefUnwindSafe for TextGranularity
impl Send for TextGranularity
impl Sync for TextGranularity
impl Unpin for TextGranularity
impl UnsafeUnpin for TextGranularity
impl UnwindSafe for TextGranularity
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.