pub struct Underline<'a> {
pub color: Option<Cow<'a, str>>,
pub val: Option<UnderlineStyle>,
}
Expand description
Underline
use docx_rust::formatting::*;
let udl = Underline::from("00ff00");
let udl = Underline::from(String::from("ff0000"));
let udl = Underline::from(("00ff00", UnderlineStyle::Dash));
let udl = Underline::from((String::from("ff0000"), UnderlineStyle::DotDash));
Fields§
§color: Option<Cow<'a, str>>
§val: Option<UnderlineStyle>
Trait Implementations§
Source§impl<'a> From<(&'a str, UnderlineStyle)> for Underline<'a>
impl<'a> From<(&'a str, UnderlineStyle)> for Underline<'a>
Source§fn from(val: (&'a str, UnderlineStyle)) -> Self
fn from(val: (&'a str, UnderlineStyle)) -> Self
Converts to this type from the input type.
Source§impl From<(String, UnderlineStyle)> for Underline<'_>
impl From<(String, UnderlineStyle)> for Underline<'_>
Source§fn from(val: (String, UnderlineStyle)) -> Self
fn from(val: (String, UnderlineStyle)) -> Self
Converts to this type from the input type.
Source§impl From<UnderlineStyle> for Underline<'_>
impl From<UnderlineStyle> for Underline<'_>
Source§fn from(val: UnderlineStyle) -> Self
fn from(val: UnderlineStyle) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for Underline<'a>
impl<'a> RefUnwindSafe for Underline<'a>
impl<'a> Send for Underline<'a>
impl<'a> Sync for Underline<'a>
impl<'a> Unpin for Underline<'a>
impl<'a> UnwindSafe for Underline<'a>
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