Struct x1b::Char
[−]
[src]
pub struct Char<TColor: RGB> { pub fg: TColor, pub bg: TColor, // some fields omitted }
Fields
fg: TColor
bg: TColor
Methods
impl<TColor: RGB + Default> Char<TColor>
[src]
fn new_with_attr(ch: char, ta: TextAttr) -> Self
impl<TColor: RGB> Char<TColor>
[src]
fn new_with_color(ch: char, fg: TColor, bg: TColor) -> Self
fn new(ch: char, ta: TextAttr, fg: TColor, bg: TColor) -> Self
fn get_char(&self) -> char
fn get_attr(&self) -> TextAttr
fn set_char(&mut self, ch: char)
fn set_attr(&mut self, ta: TextAttr)
Trait Implementations
impl<TColor: RGB + Copy> Copy for Char<TColor>
[src]
impl<TColor: RGB + Eq> Eq for Char<TColor>
[src]
impl<TColor: RGB + Clone> Clone for Char<TColor>
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<TColor: RGB + PartialEq> PartialEq for Char<TColor>
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.