pub enum PreambleType {
Color(Color),
WhiteItalics,
Indent0,
Indent4,
Indent8,
Indent12,
Indent16,
Indent20,
Indent24,
Indent28,
}Expand description
The type of the preamble
Variants§
Color(Color)
A CEA-608 color.
WhiteItalics
White Italics.
Indent0
No initial indentation.
Indent4
Cursor placed 4 characters from the left of the screen.
Indent8
Cursor placed 8 characters from the left of the screen.
Indent12
Cursor placed 12 characters from the left of the screen.
Indent16
Cursor placed 16 characters from the left of the screen.
Indent20
Cursor placed 20 characters from the left of the screen.
Indent24
Cursor placed 24 characters from the left of the screen.
Indent28
Cursor placed 28 characters from the left of the screen.
Implementations§
Source§impl PreambleType
impl PreambleType
Sourcepub fn from_indent(indent: u8) -> Option<Self>
pub fn from_indent(indent: u8) -> Option<Self>
Create a new PreambleType from an indent value
Sourcepub fn from_color(color: Color) -> Self
pub fn from_color(color: Color) -> Self
Create a new PreambleType from a Color
Sourcepub fn indent(&self) -> Option<u8>
pub fn indent(&self) -> Option<u8>
The indent value of this PreambleType
Trait Implementations§
Source§impl Clone for PreambleType
impl Clone for PreambleType
Source§fn clone(&self) -> PreambleType
fn clone(&self) -> PreambleType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PreambleType
impl Debug for PreambleType
Source§impl Ord for PreambleType
impl Ord for PreambleType
Source§fn cmp(&self, other: &PreambleType) -> Ordering
fn cmp(&self, other: &PreambleType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PreambleType
impl PartialEq for PreambleType
Source§impl PartialOrd for PreambleType
impl PartialOrd for PreambleType
impl Copy for PreambleType
impl Eq for PreambleType
impl StructuralPartialEq for PreambleType
Auto Trait Implementations§
impl Freeze for PreambleType
impl RefUnwindSafe for PreambleType
impl Send for PreambleType
impl Sync for PreambleType
impl Unpin for PreambleType
impl UnwindSafe for PreambleType
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