pub struct PendingOp {
pub count: Option<u32>,
pub operator: Option<Operator>,
}Expand description
Pending operator-pending state — only meaningful in ModalState::Normal.
Holds the count prefix being accumulated (5 in 5dd) and the pending
operator (d in dw). Both live HERE and only here: no insert-mode or
command-mode value can carry them, because the only place the type
system admits them is the Normal variant.
Fields§
§count: Option<u32>Accumulating count prefix (None ⇒ no count typed yet, effective 1).
operator: Option<Operator>Pending operator awaiting a motion (the d in dw).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PendingOp
impl<'de> Deserialize<'de> for PendingOp
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
impl Eq for PendingOp
Source§impl JsonSchema for PendingOp
impl JsonSchema for PendingOp
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 StructuralPartialEq for PendingOp
Auto Trait Implementations§
impl Freeze for PendingOp
impl RefUnwindSafe for PendingOp
impl Send for PendingOp
impl Sync for PendingOp
impl Unpin for PendingOp
impl UnsafeUnpin for PendingOp
impl UnwindSafe for PendingOp
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