[−][src]Struct vga::colors::TextModeColor
Represents a color for vga text modes.
Methods
impl TextModeColor
[src]
pub const fn new(foreground: Color16, background: Color16) -> TextModeColor
[src]
Returns a new TextModeColor
given the specified foreground
and background
color.
pub fn set_background(&mut self, background: Color16)
[src]
Sets the background color given the specified background
;
pub fn set_foreground(&mut self, foreground: Color16)
[src]
Sets the foreground color given the specified foreground
.
Trait Implementations
impl Clone for TextModeColor
[src]
fn clone(&self) -> TextModeColor
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TextModeColor
[src]
impl Debug for TextModeColor
[src]
impl Eq for TextModeColor
[src]
impl Hash for TextModeColor
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<TextModeColor> for TextModeColor
[src]
fn eq(&self, other: &TextModeColor) -> bool
[src]
fn ne(&self, other: &TextModeColor) -> bool
[src]
impl StructuralEq for TextModeColor
[src]
impl StructuralPartialEq for TextModeColor
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,