[][src]Struct x1b::Char

pub struct Char<TColor: RGB> {
    pub fg: TColor,
    pub bg: TColor,
    // some fields omitted
}

Fields

fg: TColorbg: TColor

Implementations

impl<TColor: RGB + Default> Char<TColor>[src]

pub fn new_with_attr(ch: char, ta: TextAttr) -> Self[src]

impl<TColor: RGB> Char<TColor>[src]

pub fn new_with_color(ch: char, fg: TColor, bg: TColor) -> Self[src]

pub fn new(ch: char, ta: TextAttr, fg: TColor, bg: TColor) -> Self[src]

pub fn get_char(&self) -> char[src]

pub fn get_attr(&self) -> TextAttr[src]

pub fn set_char(&mut self, ch: char)[src]

pub fn set_attr(&mut self, ta: TextAttr)[src]

Trait Implementations

impl<TColor: RGB + Clone> Clone for Char<TColor>[src]

impl<TColor: RGB + Copy> Copy for Char<TColor>[src]

impl<TColor: RGB + Default> Default for Char<TColor>[src]

impl<TColor: RGB + Eq> Eq for Char<TColor>[src]

impl<TColor: RGB + Default> From<char> for Char<TColor>[src]

impl<TColor: RGB + PartialEq> PartialEq<Char<TColor>> for Char<TColor>[src]

Auto Trait Implementations

impl<TColor> RefUnwindSafe for Char<TColor> where
    TColor: RefUnwindSafe

impl<TColor> Send for Char<TColor> where
    TColor: Send

impl<TColor> Sync for Char<TColor> where
    TColor: Sync

impl<TColor> Unpin for Char<TColor> where
    TColor: Unpin

impl<TColor> UnwindSafe for Char<TColor> where
    TColor: UnwindSafe

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.