pub struct TextDecoration {
pub underline: Option<TextDecorationStyle>,
pub overline: Option<TextDecorationStyle>,
pub line_through: Option<TextDecorationStyle>,
}
Expand description
A text span decoration.
Fields§
§underline: Option<TextDecorationStyle>
An optional underline and its style.
overline: Option<TextDecorationStyle>
An optional overline and its style.
line_through: Option<TextDecorationStyle>
An optional line-through and its style.
Trait Implementations§
Source§impl Clone for TextDecoration
impl Clone for TextDecoration
Source§fn clone(&self) -> TextDecoration
fn clone(&self) -> TextDecoration
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 moreAuto Trait Implementations§
impl Freeze for TextDecoration
impl !RefUnwindSafe for TextDecoration
impl !Send for TextDecoration
impl !Sync for TextDecoration
impl Unpin for TextDecoration
impl !UnwindSafe for TextDecoration
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