pub struct TextDecoration {
pub underline: UnderlineStyle,
pub underline_color_opt: Option<Color>,
pub strikethrough: bool,
pub strikethrough_color_opt: Option<Color>,
pub overline: bool,
pub overline_color_opt: Option<Color>,
}Fields§
§underline: UnderlineStyle§underline_color_opt: Option<Color>§strikethrough: bool§strikethrough_color_opt: Option<Color>§overline: bool§overline_color_opt: Option<Color>Implementations§
Source§impl TextDecoration
impl TextDecoration
pub const fn new() -> Self
pub const fn has_decoration(&self) -> bool
Trait Implementations§
Source§impl Clone for TextDecoration
impl Clone for TextDecoration
Source§fn clone(&self) -> TextDecoration
fn clone(&self) -> TextDecoration
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 TextDecoration
impl Debug for TextDecoration
Source§impl Default for TextDecoration
impl Default for TextDecoration
Source§fn default() -> TextDecoration
fn default() -> TextDecoration
Returns the “default value” for a type. Read more
Source§impl Hash for TextDecoration
impl Hash for TextDecoration
Source§impl PartialEq for TextDecoration
impl PartialEq for TextDecoration
impl Copy for TextDecoration
impl Eq for TextDecoration
impl StructuralPartialEq for TextDecoration
Auto 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