pub enum Operator {
Show 14 variants
Delete,
Yank,
Change,
Indent,
Dedent,
Filter,
Format,
SlurpForward,
SlurpBackward,
BarfForward,
BarfBackward,
Splice,
Wrap,
Raise,
}Expand description
Operators — vim-style verbs. Combined with a motion they produce an edit.
Structural operators (paredit-grade) compose with structural motions:
(slurp-forward)— pull the next sibling into the current list(barf-forward)— push the last child out of the current list(splice)— unwrap the current list (remove parens, keep children)(wrap)— wrap the target in a new list(raise)— replace the enclosing list with the current sexp
Variants§
Delete
Yank
Change
Indent
Dedent
Filter
Format
SlurpForward
SlurpBackward
BarfForward
BarfBackward
Splice
Wrap
Raise
Implementations§
Source§impl Operator
impl Operator
pub const fn leaves_register(self) -> bool
pub const fn is_structural(self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Operator
impl<'de> Deserialize<'de> for Operator
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Operator
impl JsonSchema for Operator
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreimpl Copy for Operator
impl Eq for Operator
impl StructuralPartialEq for Operator
Auto Trait Implementations§
impl Freeze for Operator
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnsafeUnpin for Operator
impl UnwindSafe for Operator
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