pub struct Cell {
pub ch: u8,
pub fg: Color,
pub bg: Color,
pub flags: u8,
}Fields§
§ch: u8CP437 glyph index.
fg: Color§bg: Color§flags: u8Implementations§
Source§impl Cell
impl Cell
pub fn new(ch: u8, fg: Color, bg: Color) -> Self
pub fn is_blank(&self) -> bool
Sourcepub fn resolve(&self, ice: bool) -> (Rgb, Rgb, bool)
pub fn resolve(&self, ice: bool) -> (Rgb, Rgb, bool)
Resolve to concrete (foreground, background, blinks) colors.
With ice set, the blink attribute selects a high-intensity background
instead of blinking text, as on a VGA with blink disabled.
Sourcepub fn resolve_with(&self, ice: bool, look: &Look) -> (Rgb, Rgb, bool)
pub fn resolve_with(&self, ice: bool, look: &Look) -> (Rgb, Rgb, bool)
Cell::resolve with the palette and modes the BBS has set.
Trait Implementations§
impl Copy for Cell
impl Eq for Cell
impl StructuralPartialEq for Cell
Auto Trait Implementations§
impl Freeze for Cell
impl RefUnwindSafe for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl UnsafeUnpin for Cell
impl UnwindSafe for Cell
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