Struct reedline::CursorConfig
source · 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