pub struct CursorStyle {
pub color: Color,
pub shape: CursorShape,
pub blink: bool,
pub blink_speed: Duration,
}Expand description
CursorStyle is the style for real and virtual cursors.
Fields§
§color: ColorStyle styles the cursor block. For real cursors, the foreground color set here will be used as the cursor color.
shape: CursorShapeShape is the cursor shape. The following shapes are available:
blink: boolCursorBlink determines whether or not the cursor should blink.
blink_speed: DurationBlinkSpeed is the speed at which the virtual cursor blinks. This has no effect on real cursors as well as no effect if the cursor is set not to blink.
Trait Implementations§
Source§impl Clone for CursorStyle
impl Clone for CursorStyle
Source§fn clone(&self) -> CursorStyle
fn clone(&self) -> CursorStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CursorStyle
impl RefUnwindSafe for CursorStyle
impl Send for CursorStyle
impl Sync for CursorStyle
impl Unpin for CursorStyle
impl UnsafeUnpin for CursorStyle
impl UnwindSafe for CursorStyle
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