Struct vga_framebuffer::Attr
[−]
[src]
pub struct Attr(_);
This structure describes the attributes for a Glyph. They're all packed into 8 bits to save RAM.
Methods
impl Attr[src]
pub const fn new(fg: Colour, bg: Colour) -> Attr[src]
pub fn set_fg(&mut self, fg: Colour) -> &mut Attr[src]
pub fn set_bg(&mut self, bg: Colour) -> &mut Attr[src]
Trait Implementations
impl Copy for Attr[src]
impl Clone for Attr[src]
fn clone(&self) -> Attr[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Eq for Attr[src]
impl PartialEq for Attr[src]
fn eq(&self, __arg_0: &Attr) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Attr) -> bool[src]
This method tests for !=.
impl Debug for Attr[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more