Struct text_terminal::UnderlinedColor
source · pub struct UnderlinedColor(pub Color);
Expand description
A wrapper type around Color
that is used in crate::AnsiStyleCodes
to set the color of the underline for underlined text.
Tuple Fields§
§0: Color
Implementations§
source§impl UnderlinedColor
impl UnderlinedColor
pub fn to_escape_code(self) -> Cow<'static, str>
Trait Implementations§
source§impl Clone for UnderlinedColor
impl Clone for UnderlinedColor
source§fn clone(&self) -> UnderlinedColor
fn clone(&self) -> UnderlinedColor
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 moresource§impl Debug for UnderlinedColor
impl Debug for UnderlinedColor
source§impl Default for UnderlinedColor
impl Default for UnderlinedColor
source§fn default() -> UnderlinedColor
fn default() -> UnderlinedColor
Returns the “default value” for a type. Read more
source§impl From<Color> for UnderlinedColor
impl From<Color> for UnderlinedColor
source§impl PartialEq<UnderlinedColor> for UnderlinedColor
impl PartialEq<UnderlinedColor> for UnderlinedColor
source§fn eq(&self, other: &UnderlinedColor) -> bool
fn eq(&self, other: &UnderlinedColor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for UnderlinedColor
impl Eq for UnderlinedColor
impl StructuralEq for UnderlinedColor
impl StructuralPartialEq for UnderlinedColor
Auto Trait Implementations§
impl RefUnwindSafe for UnderlinedColor
impl Send for UnderlinedColor
impl Sync for UnderlinedColor
impl Unpin for UnderlinedColor
impl UnwindSafe for UnderlinedColor
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