nu_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.