pub struct Register {
pub text: String,
pub shape: RegisterShape,
pub file_provenance: Option<Arc<FileRegister>>,
}Expand description
One register cell: text + shape (vim’s unnamed register is ").
Fields§
§text: String§shape: RegisterShape§file_provenance: Option<Arc<FileRegister>>Implementations§
Source§impl Register
impl Register
pub fn characterwise(text: impl Into<String>) -> Self
pub fn linewise(text: impl Into<String>) -> Self
Sourcepub fn blockwise(text: impl Into<String>, width: DisplayColumn) -> Self
pub fn blockwise(text: impl Into<String>, width: DisplayColumn) -> Self
width is the rectangle’s width in display cells (the same
streamed layout that measured it at yank).
pub fn is_empty(&self) -> bool
Trait Implementations§
impl Eq for Register
impl StructuralPartialEq for Register
Auto Trait Implementations§
impl Freeze for Register
impl RefUnwindSafe for Register
impl Send for Register
impl Sync for Register
impl Unpin for Register
impl UnsafeUnpin for Register
impl UnwindSafe for Register
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.