pub struct AppendNewline(pub usize);Expand description
Appends a newline below the current cursor position and switches into insert mode.
Tuple Fields§
§0: usizeTrait Implementations§
Source§impl Clone for AppendNewline
impl Clone for AppendNewline
Source§fn clone(&self) -> AppendNewline
fn clone(&self) -> AppendNewline
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 AppendNewline
impl Debug for AppendNewline
Source§impl Execute for AppendNewline
impl Execute for AppendNewline
fn execute(&mut self, state: &mut EditorState)
Source§impl From<AppendNewline> for Action
impl From<AppendNewline> for Action
Source§fn from(v: AppendNewline) -> Action
fn from(v: AppendNewline) -> Action
Converts to this type from the input type.
Source§impl TryInto<AppendNewline> for Action
impl TryInto<AppendNewline> for Action
impl Copy for AppendNewline
Auto Trait Implementations§
impl Freeze for AppendNewline
impl RefUnwindSafe for AppendNewline
impl Send for AppendNewline
impl Sync for AppendNewline
impl Unpin for AppendNewline
impl UnwindSafe for AppendNewline
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