pub struct Underline { /* private fields */ }Expand description
An underline and its optional color independent of the foreground.
Implementations§
Source§impl Underline
impl Underline
pub const fn new(style: UnderlineStyle) -> Self
pub const fn style(self, style: UnderlineStyle) -> Self
pub const fn reset_style(self) -> Self
pub fn color(self, color: impl Into<Color>) -> Self
pub const fn reset_color(self) -> Self
pub const fn get_style(self) -> UnderlineStyle
pub const fn get_color(self) -> Option<Color>
Trait Implementations§
Source§impl From<UnderlineStyle> for Underline
impl From<UnderlineStyle> for Underline
Source§fn from(style: UnderlineStyle) -> Self
fn from(style: UnderlineStyle) -> Self
Converts to this type from the input type.
impl Copy for Underline
impl Eq for Underline
impl StructuralPartialEq for Underline
Auto Trait Implementations§
impl Freeze for Underline
impl RefUnwindSafe for Underline
impl Send for Underline
impl Sync for Underline
impl Unpin for Underline
impl UnsafeUnpin for Underline
impl UnwindSafe for Underline
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