pub struct VimState { /* private fields */ }๐Deprecated since 0.75.0:
vim mode relocated to oxicode-cli; oxicode-textarea owns text, CLI owns vim logic
Implementationsยง
Sourceยงimpl VimState
impl VimState
Sourcepub fn new(enabled: bool) -> Self
๐Deprecated since 0.75.0: vim mode relocated to oxicode-cli; oxicode-textarea owns text, CLI owns vim logic
pub fn new(enabled: bool) -> Self
vim mode relocated to oxicode-cli; oxicode-textarea owns text, CLI owns vim logic
Create a new Vim state container.
pub fn set_enabled(&mut self, enabled: bool)
๐Deprecated since 0.75.0:
vim mode relocated to oxicode-cli; oxicode-textarea owns text, CLI owns vim logic
pub fn enabled(&self) -> bool
๐Deprecated since 0.75.0:
vim mode relocated to oxicode-cli; oxicode-textarea owns text, CLI owns vim logic
pub fn mode(&self) -> VimMode
๐Deprecated since 0.75.0:
vim mode relocated to oxicode-cli; oxicode-textarea owns text, CLI owns vim logic
pub fn status_label(&self) -> Option<&'static str>
๐Deprecated since 0.75.0:
vim mode relocated to oxicode-cli; oxicode-textarea owns text, CLI owns vim logic
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for VimState
impl RefUnwindSafe for VimState
impl Send for VimState
impl Sync for VimState
impl Unpin for VimState
impl UnsafeUnpin for VimState
impl UnwindSafe for VimState
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