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: char
The character displayed at this position.
foreground: (Rgb, Option<PaletteIndex>)
The foreground colour.
background: (Rgb, Option<PaletteIndex>)
The background colour.
Trait Implementations§
Source§impl Clone for CharacterCellContents
impl Clone for CharacterCellContents
Source§fn clone(&self) -> CharacterCellContents
fn clone(&self) -> CharacterCellContents
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CharacterCellContents
impl Debug for CharacterCellContents
Source§impl Hash for CharacterCellContents
impl Hash for CharacterCellContents
Source§impl Ord for CharacterCellContents
impl Ord for CharacterCellContents
Source§fn cmp(&self, other: &CharacterCellContents) -> Ordering
fn cmp(&self, other: &CharacterCellContents) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CharacterCellContents
impl PartialEq for CharacterCellContents
Source§impl PartialOrd for CharacterCellContents
impl PartialOrd for CharacterCellContents
impl Copy for CharacterCellContents
impl Eq for CharacterCellContents
impl StructuralPartialEq for CharacterCellContents
Auto Trait Implementations§
impl Freeze for CharacterCellContents
impl RefUnwindSafe for CharacterCellContents
impl Send for CharacterCellContents
impl Sync for CharacterCellContents
impl Unpin for CharacterCellContents
impl UnwindSafe for CharacterCellContents
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more