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 Attrpub const fn new(fg: Colour, bg: Colour) -> Attr[src]
pub const fn new(fg: Colour, bg: Colour) -> Attrpub fn set_fg(&mut self, fg: Colour) -> &mut Attr[src]
pub fn set_fg(&mut self, fg: Colour) -> &mut Attrpub fn set_bg(&mut self, bg: Colour) -> &mut Attr[src]
pub fn set_bg(&mut self, bg: Colour) -> &mut AttrTrait Implementations
impl Copy for Attr[src]
impl Copy for Attrimpl Clone for Attr[src]
impl Clone for Attrfn clone(&self) -> Attr[src]
fn clone(&self) -> AttrReturns 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 Attrimpl PartialEq for Attr[src]
impl PartialEq for Attrfn eq(&self, other: &Attr) -> bool[src]
fn eq(&self, other: &Attr) -> boolThis 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) -> boolThis method tests for !=.
impl Debug for Attr[src]
impl Debug for Attrfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for Attr[src]
impl Default for Attr