pub struct Cursor { /* private fields */ }Implementations§
source§impl Cursor
impl Cursor
sourcepub const fn overlay_style(self, overlay_style: Style) -> Self
pub const fn overlay_style(self, overlay_style: Style) -> Self
Sets the overlay style for the cursor.
The overlay style is used when the cursor overlaps with existing content on the screen.
Arguments
overlay_style: TheStyleto set as the overlay style for the cursor.
Example
use tui_term::widget::Cursor;
use ratatui::style::Style;
let cursor = Cursor::default().overlay_style(Style::default());Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Cursor
impl Send for Cursor
impl Sync for Cursor
impl Unpin for Cursor
impl UnwindSafe for Cursor
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