pub enum ColorModel {
CMYK,
Gray,
RGB,
RGBFull,
Named,
}
Expand description
Represents color models for LaTeX.
§Example
use rusttex::ColorModel;
let color_model = ColorModel::RGB;
Generated LaTeX:
\textcolor[rgb]{1,0,0}{Red Text}
Variants§
CMYK
Represents the cmyk
color model in LaTeX.
Gray
Represents the gray
color model in LaTeX.
RGB
Represents the rgb
color model in LaTeX.
RGBFull
Represents the RGB
color model in LaTeX.
Named
Represents the named
color model in LaTeX.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ColorModel
impl RefUnwindSafe for ColorModel
impl Send for ColorModel
impl Sync for ColorModel
impl Unpin for ColorModel
impl UnwindSafe for ColorModel
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