Type Alias nu_ansi_term::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.