pub enum RepeatType {
EditSequence,
LastAction,
LastSelection,
}Expand description
Different action sequences that can be repeated.
Variants§
EditSequence
A sequence of changes made to a buffer.
§Example: Using action!
use editor_types::prelude::*;
use editor_types::{action, Action};
let rep: Action = action!("repeat -s edit-sequence");
assert_eq!(rep, Action::Repeat(RepeatType::EditSequence));LastAction
The last Action done.
§Example: Using action!
use editor_types::prelude::*;
use editor_types::{action, Action};
let rep: Action = action!("repeat -s last-action");
assert_eq!(rep, Action::Repeat(RepeatType::LastAction));LastSelection
The last selection resize made in a buffer.
§Example: Using action!
use editor_types::prelude::*;
use editor_types::{action, Action};
let rep: Action = action!("repeat -s last-selection");
assert_eq!(rep, Action::Repeat(RepeatType::LastSelection));Trait Implementations§
Source§impl Clone for RepeatType
impl Clone for RepeatType
Source§fn clone(&self) -> RepeatType
fn clone(&self) -> RepeatType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RepeatType
impl Debug for RepeatType
Source§impl Hash for RepeatType
impl Hash for RepeatType
Source§impl PartialEq for RepeatType
impl PartialEq for RepeatType
impl Eq for RepeatType
impl StructuralPartialEq for RepeatType
Auto Trait Implementations§
impl Freeze for RepeatType
impl RefUnwindSafe for RepeatType
impl Send for RepeatType
impl Sync for RepeatType
impl Unpin for RepeatType
impl UnwindSafe for RepeatType
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