Struct oc_wasm_opencomputers::gpu::CharacterCellContents  
source · [−]pub struct CharacterCellContents {
    pub character: char,
    pub foreground: (Rgb, Option<PaletteIndex>),
    pub background: (Rgb, Option<PaletteIndex>),
}Expand description
The full contents of a character cell.
Fields
character: charThe character displayed at this position.
foreground: (Rgb, Option<PaletteIndex>)The foreground colour.
background: (Rgb, Option<PaletteIndex>)The background colour.
Trait Implementations
sourceimpl Clone for CharacterCellContents
 
impl Clone for CharacterCellContents
sourcefn clone(&self) -> CharacterCellContents
 
fn clone(&self) -> CharacterCellContents
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CharacterCellContents
 
impl Debug for CharacterCellContents
sourceimpl Hash for CharacterCellContents
 
impl Hash for CharacterCellContents
sourceimpl Ord for CharacterCellContents
 
impl Ord for CharacterCellContents
sourceimpl PartialEq<CharacterCellContents> for CharacterCellContents
 
impl PartialEq<CharacterCellContents> for CharacterCellContents
sourcefn eq(&self, other: &CharacterCellContents) -> bool
 
fn eq(&self, other: &CharacterCellContents) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &CharacterCellContents) -> bool
 
fn ne(&self, other: &CharacterCellContents) -> bool
This method tests for !=.
sourceimpl PartialOrd<CharacterCellContents> for CharacterCellContents
 
impl PartialOrd<CharacterCellContents> for CharacterCellContents
sourcefn partial_cmp(&self, other: &CharacterCellContents) -> Option<Ordering>
 
fn partial_cmp(&self, other: &CharacterCellContents) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
 
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for CharacterCellContents
impl Eq for CharacterCellContents
impl StructuralEq for CharacterCellContents
impl StructuralPartialEq for CharacterCellContents
Auto Trait Implementations
impl RefUnwindSafe for CharacterCellContents
impl Send for CharacterCellContents
impl Sync for CharacterCellContents
impl Unpin for CharacterCellContents
impl UnwindSafe for CharacterCellContents
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
    T: Clone, 
 
impl<T> ToOwned for T where
    T: Clone, 
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
 
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more