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.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 40 bytes