#[non_exhaustive]#[repr(u32)]pub enum CursorStyle {
Bar = 0,
Block = 1,
Underline = 2,
BlockHollow = 3,
}Expand description
Default visual style used when the cursor style is reset.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bar = 0
Bar cursor (DECSCUSR 5, 6).
Block = 1
Block cursor (DECSCUSR 1, 2).
Underline = 2
Underline cursor (DECSCUSR 3, 4).
BlockHollow = 3
Hollow block cursor.
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 moreimpl Copy for CursorStyle
Source§impl Debug for CursorStyle
impl Debug for CursorStyle
impl Eq for CursorStyle
Source§impl From<CursorStyle> for u32
impl From<CursorStyle> for u32
Source§fn from(v: CursorStyle) -> Self
fn from(v: CursorStyle) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CursorStyle
impl PartialEq for CursorStyle
Source§fn eq(&self, other: &CursorStyle) -> bool
fn eq(&self, other: &CursorStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CursorStyle
Auto 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