[][src]Struct vga_framebuffer::Attr

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]

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]

pub fn as_u8(self) -> u8[src]

Trait Implementations

impl Debug for Attr[src]

impl PartialEq<Attr> for Attr[src]

impl Eq for Attr[src]

impl Copy for Attr[src]

impl Clone for Attr[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for Attr[src]

Auto Trait Implementations

impl Unpin for Attr

impl Sync for Attr

impl Send for Attr

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]