[−][src]Struct vga::writers::ScreenCharacter
Represents a ScreenCharacter
in vga text modes.
Methods
impl ScreenCharacter
[src]
pub const fn new(character: u8, color: TextModeColor) -> ScreenCharacter
[src]
Creates a new ScreenCharacter
with the specified character
and TextModeColor
.
pub fn get_character(self) -> u8
[src]
Returns the character
associated with the ScreenCharacter
.
pub fn get_color(self) -> TextModeColor
[src]
Returns the color
associated with the ScreenCharacter
.
Trait Implementations
impl Clone for ScreenCharacter
[src]
fn clone(&self) -> ScreenCharacter
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ScreenCharacter
[src]
impl Debug for ScreenCharacter
[src]
impl Eq for ScreenCharacter
[src]
impl Hash for ScreenCharacter
[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<ScreenCharacter> for ScreenCharacter
[src]
fn eq(&self, other: &ScreenCharacter) -> bool
[src]
fn ne(&self, other: &ScreenCharacter) -> bool
[src]
impl StructuralEq for ScreenCharacter
[src]
impl StructuralPartialEq for ScreenCharacter
[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>,