pub enum Sgr {
Show 60 variants
Char(char),
Bell,
Backspace,
Tab,
LineFeed,
FormFeed,
CarriageReturn,
Title(String),
Cwd(String),
Prompt,
CursorUp(i32),
CursorDown(i32),
CursorForward(i32),
CursorBack(i32),
CursorNextLine(i32),
CursorPreviousLine(i32),
CursorHorizontalAbsolute(i32),
CursorPosition(i32, i32),
EraseInDisplay(i32),
EraseInLine(i32),
ScrollUp(i32),
ScrollDown(i32),
HorizontalVerticalPosition(i32, i32),
AUXPortOn,
AUXPortOff,
DeviceStatusReport,
CursorSave,
CursorRestore,
CursorHide,
CursorShow,
ColorForeground(AnsiColor),
ColorBackground(AnsiColor),
ColorUnderLine(AnsiColor),
ColorFgBg(AnsiColor, AnsiColor),
ColorReset,
Reverse,
ColorDefaultForeground,
ColorDefaultBackground,
ColorDefaultUnderline,
Bold,
NormalIntensity,
Italic,
Underline,
Dim,
SlowBlink,
RapidBlink,
Strike,
UnStrike,
UnItalic,
PrimaryFont,
DoublyUnderlined,
UnUnderlined,
UnBlink,
List(Vec<Sgr>),
Link(String, String),
AlternativeFont(u8),
Fraktur,
UnReversed,
UnHide,
Unknown(u8),
}Variants§
Char(char)
Bell
Backspace
Tab
LineFeed
FormFeed
CarriageReturn
Title(String)
Cwd(String)
Prompt
CursorUp(i32)
CursorDown(i32)
CursorForward(i32)
CursorBack(i32)
CursorNextLine(i32)
CursorPreviousLine(i32)
CursorHorizontalAbsolute(i32)
CursorPosition(i32, i32)
EraseInDisplay(i32)
EraseInLine(i32)
ScrollUp(i32)
ScrollDown(i32)
HorizontalVerticalPosition(i32, i32)
AUXPortOn
AUXPortOff
DeviceStatusReport
CursorSave
CursorRestore
CursorHide
CursorShow
ColorForeground(AnsiColor)
ColorBackground(AnsiColor)
ColorUnderLine(AnsiColor)
ColorFgBg(AnsiColor, AnsiColor)
ColorReset
Reverse
ColorDefaultForeground
ColorDefaultBackground
ColorDefaultUnderline
Bold
NormalIntensity
Italic
Underline
Dim
SlowBlink
RapidBlink
Strike
UnStrike
UnItalic
PrimaryFont
DoublyUnderlined
UnUnderlined
UnBlink
List(Vec<Sgr>)
Link(String, String)
AlternativeFont(u8)
Fraktur
UnReversed
UnHide
Unknown(u8)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sgr
impl RefUnwindSafe for Sgr
impl Send for Sgr
impl Sync for Sgr
impl Unpin for Sgr
impl UnwindSafe for Sgr
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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