pub struct CursorConfig {
pub vi_insert: Option<SetCursorStyle>,
pub vi_normal: Option<SetCursorStyle>,
pub emacs: Option<SetCursorStyle>,
}
Expand description
Maps cursor shapes to each edit mode (emacs, vi normal & vi insert).
If any of the fields is None
, the cursor won’t get changed by Reedline for that mode.
Fields§
§vi_insert: Option<SetCursorStyle>
The cursor to be used when in vi insert mode
vi_normal: Option<SetCursorStyle>
The cursor to be used when in vi normal mode
emacs: Option<SetCursorStyle>
The cursor to be used when in emacs mode
Trait Implementations§
Source§impl Default for CursorConfig
impl Default for CursorConfig
Source§fn default() -> CursorConfig
fn default() -> CursorConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CursorConfig
impl RefUnwindSafe for CursorConfig
impl Send for CursorConfig
impl Sync for CursorConfig
impl Unpin for CursorConfig
impl UnwindSafe for CursorConfig
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> 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