pub enum YankType {
Characterwise,
Linewise,
}Expand description
Type of yank operation.
This affects how paste operations behave:
- Characterwise: Paste at cursor position
- Linewise: Paste below/above current line
§Example
use reovim_kernel::api::v1::*;
// yw yanks characterwise
let char_yank = YankType::Characterwise;
// yy yanks linewise
let line_yank = YankType::Linewise;Variants§
Trait Implementations§
Source§impl From<YankType> for YankTypeSnapshot
impl From<YankType> for YankTypeSnapshot
impl Copy for YankType
impl Eq for YankType
impl StructuralPartialEq for YankType
Auto Trait Implementations§
impl Freeze for YankType
impl RefUnwindSafe for YankType
impl Send for YankType
impl Sync for YankType
impl Unpin for YankType
impl UnsafeUnpin for YankType
impl UnwindSafe for YankType
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