Struct hel_colored::ANSIString
source · pub struct ANSIString<T> { /* private fields */ }Implementations§
Trait Implementations§
source§impl<T: Clone> Clone for ANSIString<T>
impl<T: Clone> Clone for ANSIString<T>
source§fn clone(&self) -> ANSIString<T>
fn clone(&self) -> ANSIString<T>
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<T> Colored for &mut ANSIString<T>
impl<T> Colored for &mut ANSIString<T>
type Output = ()
fn blue(self) -> Self::Output
fn cyan(self) -> Self::Output
fn green(self) -> Self::Output
fn magenta(self) -> Self::Output
fn orange(self) -> Self::Output
fn red(self) -> Self::Output
fn yellow(self) -> Self::Output
fn on_blue(self) -> Self::Output
fn on_cyan(self) -> Self::Output
fn on_green(self) -> Self::Output
fn on_magenta(self) -> Self::Output
fn on_orange(self) -> Self::Output
fn on_red(self) -> Self::Output
fn on_yellow(self) -> Self::Output
fn rgb(self, rgb: (u8, u8, u8)) -> Self::Output
fn on_rgb(self, rgb: (u8, u8, u8)) -> Self::Output
source§impl<T> Colored for ANSIString<T>
impl<T> Colored for ANSIString<T>
type Output = ANSIString<T>
fn blue(self) -> Self::Output
fn cyan(self) -> Self::Output
fn green(self) -> Self::Output
fn magenta(self) -> Self::Output
fn orange(self) -> Self::Output
fn red(self) -> Self::Output
fn yellow(self) -> Self::Output
fn on_blue(self) -> Self::Output
fn on_cyan(self) -> Self::Output
fn on_green(self) -> Self::Output
fn on_magenta(self) -> Self::Output
fn on_orange(self) -> Self::Output
fn on_red(self) -> Self::Output
fn on_yellow(self) -> Self::Output
fn rgb(self, rgb: (u8, u8, u8)) -> Self::Output
fn on_rgb(self, rgb: (u8, u8, u8)) -> Self::Output
source§impl<T: Debug> Debug for ANSIString<T>
impl<T: Debug> Debug for ANSIString<T>
source§impl<T: AsRef<str>> From<ANSIString<T>> for String
impl<T: AsRef<str>> From<ANSIString<T>> for String
source§fn from(value: ANSIString<T>) -> Self
fn from(value: ANSIString<T>) -> Self
Converts to this type from the input type.
source§impl<T: PartialEq> PartialEq<ANSIString<T>> for ANSIString<T>
impl<T: PartialEq> PartialEq<ANSIString<T>> for ANSIString<T>
source§fn eq(&self, other: &ANSIString<T>) -> bool
fn eq(&self, other: &ANSIString<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.