[−][src]Struct x1b::Char
Fields
fg: TColor
bg: 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]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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,
TColor: RefUnwindSafe,
impl<TColor> Send for Char<TColor> where
TColor: Send,
TColor: Send,
impl<TColor> Sync for Char<TColor> where
TColor: Sync,
TColor: Sync,
impl<TColor> Unpin for Char<TColor> where
TColor: Unpin,
TColor: Unpin,
impl<TColor> UnwindSafe for Char<TColor> where
TColor: UnwindSafe,
TColor: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,