pub enum YankKind {
Charwise,
Linewise,
Blockwise,
}Expand description
How a yank captured its content. Drives paste behavior:
charwise yanks land at the cursor, linewise yanks land on the next
line below, blockwise yanks paste each ‘\n’-separated row at the
same column on consecutive lines (vim’s Ctrl-V selection then
y).
Variants§
Charwise
A span of characters; p inserts after the cursor, P at it.
Linewise
Whole lines (content ends with a newline); p opens below the
cursor line, P above.
Blockwise
A Visual-block rectangle: rows joined by '\n', pasted one per
line at the cursor’s column.
Trait Implementations§
impl Copy for YankKind
Source§impl<'de> Deserialize<'de> for YankKind
impl<'de> Deserialize<'de> for YankKind
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 YankKind
impl StructuralPartialEq for YankKind
Auto Trait Implementations§
impl Freeze for YankKind
impl RefUnwindSafe for YankKind
impl Send for YankKind
impl Sync for YankKind
impl Unpin for YankKind
impl UnsafeUnpin for YankKind
impl UnwindSafe for YankKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.