#[non_exhaustive]pub enum PrintColorMode {
Color,
Grayscale,
PureBlackWhite,
}Expand description
Specifies how a presentation should be printed with respect to color.
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.
Color
Print in full color.
Grayscale
Print in grayscale.
PureBlackWhite
Print in pure black and white.
Implementations§
Source§impl PrintColorMode
impl PrintColorMode
Sourcepub const fn to_xml_str(self) -> &'static str
pub const fn to_xml_str(self) -> &'static str
Return the XML attribute value for this color mode.
Sourcepub fn from_xml_str(s: &str) -> Option<Self>
pub fn from_xml_str(s: &str) -> Option<Self>
Parse an XML color mode attribute value.
Trait Implementations§
Source§impl Clone for PrintColorMode
impl Clone for PrintColorMode
Source§fn clone(&self) -> PrintColorMode
fn clone(&self) -> PrintColorMode
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 PrintColorMode
impl Debug for PrintColorMode
Source§impl PartialEq for PrintColorMode
impl PartialEq for PrintColorMode
impl Copy for PrintColorMode
impl Eq for PrintColorMode
impl StructuralPartialEq for PrintColorMode
Auto Trait Implementations§
impl Freeze for PrintColorMode
impl RefUnwindSafe for PrintColorMode
impl Send for PrintColorMode
impl Sync for PrintColorMode
impl Unpin for PrintColorMode
impl UnsafeUnpin for PrintColorMode
impl UnwindSafe for PrintColorMode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.