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