#[non_exhaustive]pub enum Register {
}
Expand description
Locations for temporarily storing text shared between buffers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unnamed
The default register.
For example, ""
in Vim.
UnnamedMacro
The default macro register.
For example, "@
in Kakoune.
UnnamedCursorGroup
The default cursor group register.
For example, "^
in Kakoune.
RecentlyDeleted(usize)
Recently deleted text.
For example, "[1-9]
in Vim.
SmallDelete
Most recently deleted text that was shorted than a line.
For example, "-
in Vim.
LastCommand
A register containing the last executed command.
For example, ":
in Vim.
LastInserted
A register containing the last inserted text.
For example, ".
in Vim.
LastSearch
A register containing the last search expression.
For example, "/
in Vim.
LastYanked
A register containing the last copied text.
For eample, "0
in Vim.
Named(char)
A register named by char
.
The index of the most recent deletion is 0, the second most recent deletion is 1, and so on.
For example, "[a-zA-Z]
in Vim.
AltBufName
A read-only register containing the alternate buffer name.
For example, "#
in Vim.
CurBufName
A read-only register containing the current buffer name.
For example, "%
in Vim.
Blackhole
A register that discards all content written to it.
For example, "_
in Vim.
SelectionPrimary
A register representing the windowing environment’s most recently selected text.
For example, "*
in Vim, or what clicking the mouse’s middle button pastes in X and
Wayland.
SelectionClipboard
A register representing the windowing environment’s most recently copied text.
For example, "+
in Vim, or what the keyboard shortcut pastes in X and Wayland.
Implementations§
Trait Implementations§
source§impl PartialEq for Register
impl PartialEq for Register
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 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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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
key
and return true
if they are equal.