Enum cea608_types::tables::PreambleType
source · pub enum PreambleType {
Color(Color),
WhiteItalics,
Indent0,
Indent4,
Indent8,
Indent12,
Indent16,
Indent20,
Indent24,
Indent28,
}Expand description
The type of the preamble
Variants§
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 copy 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§fn eq(&self, other: &PreambleType) -> bool
fn eq(&self, other: &PreambleType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for PreambleType
impl PartialOrd for PreambleType
source§fn partial_cmp(&self, other: &PreambleType) -> Option<Ordering>
fn partial_cmp(&self, other: &PreambleType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl 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