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.

Trait Implementations

Source§

impl<'a, S> Debug for ANSIGenericStrings<'a, S>
where <S as ToOwned>::Owned: Debug, S: PartialEq + Debug + 'a + ToOwned + ?Sized,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, S> PartialEq for ANSIGenericStrings<'a, S>
where <S as ToOwned>::Owned: Debug, S: PartialEq + PartialEq + 'a + ToOwned + ?Sized,

Source§

fn eq(&self, other: &ANSIGenericStrings<'a, S>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a, S> StructuralPartialEq for ANSIGenericStrings<'a, S>
where <S as ToOwned>::Owned: Debug, S: PartialEq + 'a + ToOwned + ?Sized,