pub enum Affinity {
Upstream,
Downstream,
}Expand description
Which side of a wrap/grapheme boundary a caret visually prefers.
Unused by single-line TextInput; carried from day one (D116) so
Step 4’s wrapped up/down movement and v1.0’s BiDi caret don’t need a
Selection rewrite to add it later.
Variants§
Trait Implementations§
impl Copy for Affinity
impl Eq for Affinity
impl StructuralPartialEq for Affinity
Auto Trait Implementations§
impl Freeze for Affinity
impl RefUnwindSafe for Affinity
impl Send for Affinity
impl Sync for Affinity
impl Unpin for Affinity
impl UnsafeUnpin for Affinity
impl UnwindSafe for Affinity
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