Struct clucolor::writer::cluColorWriter
source · pub struct cluColorWriter<C: cluColor>(_);
Expand description
Lightweight wrap for generalized color type.
Implementations§
source§impl<C: cluColor> cluColorWriter<C>
impl<C: cluColor> cluColorWriter<C>
pub fn new() -> Self
pub fn raw_color<'a>(&self) -> &'a str
pub fn raw_color_b<'a>(&self) -> &'a [u8] ⓘ
pub fn name<'a>(&self) -> &'a str
pub fn write<'a, W: Write>(&self, w: W, buf: &'a [u8]) -> Result<()>
pub fn write_str<'a, W: Write>(&self, w: W, str: &'a str) -> Result<()>
pub fn write_fmt<'a, W: Write>(&self, w: W, fmt: Arguments<'a>) -> Result<()>
pub fn writen<'a, W: Write>(&self, w: W, buf: &'a [u8]) -> Result<()>
pub fn writen_str<'a, W: Write>(&self, w: W, str: &'a str) -> Result<()>
pub fn writen_fmt<'a, W: Write>(&self, w: W, fmt: Arguments<'a>) -> Result<()>
pub fn string_as<'a, A: AsRef<str>>(&self, asref: A) -> String
pub fn stringn_as<'a, A: AsRef<str>>(&self, asref: A) -> String
pub fn string<'a>(&self, str: &'a str) -> String
pub fn string_fmt<'a>(&self, fmt: Arguments<'a>) -> String
pub fn stringn<'a>(&self, str: &'a str) -> String
pub fn stringn_fmt<'a>(&self, fmt: Arguments<'a>) -> String
Trait Implementations§
source§impl<C: Clone + cluColor> Clone for cluColorWriter<C>
impl<C: Clone + cluColor> Clone for cluColorWriter<C>
source§fn clone(&self) -> cluColorWriter<C>
fn clone(&self) -> cluColorWriter<C>
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<C: cluColor> Display for cluColorWriter<C>
impl<C: cluColor> Display for cluColorWriter<C>
source§impl<C: Ord + cluColor> Ord for cluColorWriter<C>
impl<C: Ord + cluColor> Ord for cluColorWriter<C>
source§fn cmp(&self, other: &cluColorWriter<C>) -> Ordering
fn cmp(&self, other: &cluColorWriter<C>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<C: PartialEq + cluColor> PartialEq<cluColorWriter<C>> for cluColorWriter<C>
impl<C: PartialEq + cluColor> PartialEq<cluColorWriter<C>> for cluColorWriter<C>
source§fn eq(&self, other: &cluColorWriter<C>) -> bool
fn eq(&self, other: &cluColorWriter<C>) -> bool
source§impl<C: PartialOrd + cluColor> PartialOrd<cluColorWriter<C>> for cluColorWriter<C>
impl<C: PartialOrd + cluColor> PartialOrd<cluColorWriter<C>> for cluColorWriter<C>
source§fn partial_cmp(&self, other: &cluColorWriter<C>) -> Option<Ordering>
fn partial_cmp(&self, other: &cluColorWriter<C>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'l, T: cluColor> cluColor for cluColorWriter<T>
impl<'l, T: cluColor> cluColor for cluColorWriter<T>
source§fn raw_color_b<'a>() -> &'a [u8] ⓘ
fn raw_color_b<'a>() -> &'a [u8] ⓘ
Color array type