Trait clucolor::cluColor [−][src]
pub trait cluColor: Clone + Debug + Display + Eq + Hash + Ord + PartialEq + PartialOrd { fn raw_color<'a>() -> &'a str; fn raw_color_b<'a>() -> &'a [u8]; fn name<'a>() -> &'a str; fn string<'a>(str: &'a str) -> String; fn string_fmt<'a>(fmt: Arguments<'a>) -> String; fn stringn<'a>(str: &'a str) -> String; fn stringn_fmt<'a>(fmt: Arguments<'a>) -> String; fn write<'a>(w: &mut Write, buf: &'a [u8]) -> Result<()>; fn write_str<'a>(w: &mut Write, str: &'a str) -> Result<()>; fn write_fmt<'a>(w: &mut Write, fmt: Arguments<'a>) -> Result<()>; fn writen<'a>(w: &mut Write, buf: &'a [u8]) -> Result<()>; fn writen_str<'a>(w: &mut Write, str: &'a str) -> Result<()>; fn writen_fmt<'a>(w: &mut Write, fmt: Arguments<'a>) -> Result<()>; fn writer<'a>() -> cluColorWriter<Self> { ... } fn string_as<'a, A: AsRef<str>>(asref: A) -> String { ... } fn stringn_as<'a, A: AsRef<str>>(asref: A) -> String { ... } fn write_as<'a, A: AsRef<[u8]>>(w: &mut Write, asref: A) -> Result<()> { ... } fn writen_as<'a, A: AsRef<[u8]>>(w: &mut Write, asref: A) -> Result<()> { ... } }
Common features implemented by the generalized type.
Required Methods
fn raw_color<'a>() -> &'a str
Color str type
fn raw_color_b<'a>() -> &'a [u8]
Color array type
fn name<'a>() -> &'a str
Name color
fn string<'a>(str: &'a str) -> String
fn string_fmt<'a>(fmt: Arguments<'a>) -> String
fn stringn<'a>(str: &'a str) -> String
fn stringn_fmt<'a>(fmt: Arguments<'a>) -> String
fn write<'a>(w: &mut Write, buf: &'a [u8]) -> Result<()>
fn write_str<'a>(w: &mut Write, str: &'a str) -> Result<()>
fn write_fmt<'a>(w: &mut Write, fmt: Arguments<'a>) -> Result<()>
fn writen<'a>(w: &mut Write, buf: &'a [u8]) -> Result<()>
fn writen_str<'a>(w: &mut Write, str: &'a str) -> Result<()>
fn writen_fmt<'a>(w: &mut Write, fmt: Arguments<'a>) -> Result<()>
Provided Methods
fn writer<'a>() -> cluColorWriter<Self>
fn string_as<'a, A: AsRef<str>>(asref: A) -> String
fn stringn_as<'a, A: AsRef<str>>(asref: A) -> String
fn write_as<'a, A: AsRef<[u8]>>(w: &mut Write, asref: A) -> Result<()>
fn writen_as<'a, A: AsRef<[u8]>>(w: &mut Write, asref: A) -> Result<()>
Implementors
impl cluColor for Blackimpl cluColor for Redimpl cluColor for Greenimpl cluColor for Yellowimpl cluColor for Blueimpl cluColor for Magentaimpl cluColor for Cyanimpl cluColor for Whiteimpl cluColor for BrightBlackimpl cluColor for BrightRedimpl cluColor for BrightGreenimpl cluColor for BrightYellowimpl cluColor for BrightBlueimpl cluColor for BrightMagentaimpl cluColor for BrightCyanimpl cluColor for BrightWhite