pub enum Affinity {
Upstream,
Downstream,
}Expand description
Which side a caret offset is on where one offset is two places on screen: the end of a wrapped line and the start of the next.
Variants§
Upstream
With the character before the offset: at the end of the earlier line.
Downstream
With the character after the offset: at the start of the later line.
Trait Implementations§
impl Copy for Affinity
impl Eq for Affinity
impl StructuralPartialEq for Affinity
Auto Trait Implementations§
impl Forget for Affinity
impl Freeze for Affinity
impl Move 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