nu_ansi_term

Type Alias AnsiByteStrings

Source
pub type AnsiByteStrings<'a> = AnsiGenericStrings<'a, [u8]>;
Expand description

A set of AnsiByteStrings collected together, in order to be written with a minimum of control characters.

Aliased Type§

struct AnsiByteStrings<'a>(pub &'a [AnsiGenericString<'a, [u8]>]);

Fields§

§0: &'a [AnsiGenericString<'a, [u8]>]

Implementations§

Source§

impl<'a> AnsiByteStrings<'a>

Source

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

Write AnsiByteStrings to an io::Write. This writes the minimal escape sequences for the associated Styles around each set of 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: 16 bytes