ansi_term

Type Alias ANSIByteString

Source
pub type ANSIByteString<'a> = ANSIGenericString<'a, [u8]>;
Expand description

An ANSIByteString represents a formatted series of bytes. Use ANSIByteString when styling text with an unknown encoding.

Aliased Type§

struct ANSIByteString<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> ANSIByteString<'a>

Source

pub fn write_to<W: Write>(&self, w: &mut W) -> Result<()>

Write an ANSIByteString to an io::Write. This writes the escape sequences for the associated Style around the bytes.