Struct docx_rust::formatting::Color
source · [−]Expand description
Text Color
Specifies the color to be used to display text.
use docx::formatting::Color;
let color = Color::from("000000");
let color = Color::from(String::from("000000"));
let color = Color::from(0u32); // "000000"
let color = Color::from((0u8, 0u8, 0u8)); // "000000"
Fields
value: Cow<'a, str>
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Color<'a>
impl<'a> Send for Color<'a>
impl<'a> Sync for Color<'a>
impl<'a> Unpin for Color<'a>
impl<'a> UnwindSafe for Color<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more