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

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.