Struct ansi_term::ANSIGenericStrings[][src]

pub struct ANSIGenericStrings<'a, S: 'a + ToOwned + ?Sized>(pub &'a [ANSIGenericString<'a, S>])
where
    <S as ToOwned>::Owned: Debug,
    S: PartialEq
;

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

Implementations

impl<'a> ANSIGenericStrings<'a, [u8]>[src]

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

Write ANSIByteStrings to an io::Write. This writes the minimal escape sequences for the associated Styles around each set of bytes.

Trait Implementations

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

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

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

Auto Trait Implementations

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

impl<'a, S: ?Sized> Send for ANSIGenericStrings<'a, S> where
    S: Sync,
    <S as ToOwned>::Owned: Sync

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

impl<'a, S: ?Sized> Unpin for ANSIGenericStrings<'a, S>

impl<'a, S: ?Sized> UnwindSafe for ANSIGenericStrings<'a, S> where
    S: RefUnwindSafe,
    <S as ToOwned>::Owned: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.