Struct neko::prelude::Character
[−]
#[repr(C)]pub struct Character { /* fields omitted */ }
Methods
impl Character
fn is_enter(&self) -> bool
fn is_space(&self) -> bool
fn is_null(&self) -> bool
fn is_bold(&self) -> bool
fn is_dim(&self) -> bool
fn is_italic(&self) -> bool
fn is_underline(&self) -> bool
fn is_blink(&self) -> bool
fn is_reverse(&self) -> bool
fn get_attribute(&self) -> u8
fn get_foreground(&self) -> [u8; 3]
fn get_background(&self) -> [u8; 3]
fn get_glyph(&self) -> char
fn set_foreground(&mut self, fore: [u8; 3])
fn set_background(&mut self, back: [u8; 3])
fn add_attribute(&mut self, attr: Attribute)
fn sub_attribute(&mut self, attr: Attribute)
fn set_attribute(&mut self, attr: Attribute)
fn set_attribute_from_u8(&mut self, attr: u8)
fn set_glyph(&mut self, glyph: char)
fn clear(&mut self)
The method clear
resets the term character.
Trait Implementations
impl Copy for Character
impl Debug for Character
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Eq for Character
impl PartialEq<Character> for Character
fn eq(&self, __arg_0: &Character) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Character) -> bool
This method tests for !=
.
impl Default for Character
impl Clone for Character
fn clone(&self) -> Character
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 Display for Character
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more