pub struct Slot {
pub text: String,
pub linewise: bool,
pub blockwise: bool,
pub block_width: usize,
}Fields§
§text: String§linewise: bool§blockwise: boolBlockwise (visual-block <C-v>) register. When set, text still
holds the row segments joined by \n (so charwise-fallback paste
and the hjkl_get_register RPC keep the same string), but p/P
re-insert it as COLUMNS at the cursor rather than spilling onto new
lines. Mutually exclusive with linewise in practice.
block_width: usizeColumn width of a blockwise register — the number of cells each row
segment is padded to (with trailing spaces) when pasted. Zero for
charwise/linewise slots. See Slot::blockwise.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Slot
impl RefUnwindSafe for Slot
impl Send for Slot
impl Sync for Slot
impl Unpin for Slot
impl UnsafeUnpin for Slot
impl UnwindSafe for Slot
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