pub struct XpCell {
pub ch: u32,
pub fg: XpColor,
pub bg: XpColor,
}
Expand description
Structure representing a character and its foreground/background color
Fields§
§ch: u32
Character index
This depends on the font but will usually be a code page 437 character
(one way to convert to a rust unicode character one way is to use
CP437_WINGDINGS.decode(...)
in the codepage_437
crate!)
fg: XpColor
Foreground color
bg: XpColor
Background color
Trait Implementations§
impl Copy for XpCell
impl Eq for XpCell
impl StructuralPartialEq for XpCell
Auto Trait Implementations§
impl Freeze for XpCell
impl RefUnwindSafe for XpCell
impl Send for XpCell
impl Sync for XpCell
impl Unpin for XpCell
impl UnwindSafe for XpCell
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