pub struct InsertNewline(pub usize);Expand description
Appends a newline at the current cursor position.
In single-line mode, this action is ignored.
Tuple Fields§
§0: usizeTrait Implementations§
Source§impl Clone for InsertNewline
impl Clone for InsertNewline
Source§fn clone(&self) -> InsertNewline
fn clone(&self) -> InsertNewline
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InsertNewline
Source§impl Debug for InsertNewline
impl Debug for InsertNewline
Source§impl Execute for InsertNewline
impl Execute for InsertNewline
fn execute(&mut self, state: &mut EditorState)
Source§fn is_repeatable(&self) -> bool
fn is_repeatable(&self) -> bool
Whether this action can be replayed by the dot-repeat command.
Source§impl From<InsertNewline> for Action
impl From<InsertNewline> for Action
Source§fn from(v: InsertNewline) -> Action
fn from(v: InsertNewline) -> Action
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InsertNewline
impl RefUnwindSafe for InsertNewline
impl Send for InsertNewline
impl Sync for InsertNewline
impl Unpin for InsertNewline
impl UnsafeUnpin for InsertNewline
impl UnwindSafe for InsertNewline
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more