Struct texel_types::Texel
source · pub struct Texel {
pub pos: Position2D,
pub symbol: char,
pub styles: SymbolStyles,
pub fg: u8,
pub bg: u8,
}
Expand description
Base building block, “textual pixel” consisting of coordinates, symbol, styles and colors
Fields§
§pos: Position2D
§symbol: char
§styles: SymbolStyles
Set of SymbolStyle
styles
fg: u8
Foreground color as termion::color::AsciiValue.0
u8
bg: u8
Background color as termion::color::AsciiValue.0
u8
Implementations§
source§impl Texel
impl Texel
sourcepub fn moved_from(&self, pos: Position2D) -> Self
pub fn moved_from(&self, pos: Position2D) -> Self
Clones this texel moved to a new position
Trait Implementations§
source§impl PartialEq for Texel
impl PartialEq for Texel
impl Eq for Texel
impl StructuralPartialEq for Texel
Auto Trait Implementations§
impl RefUnwindSafe for Texel
impl Send for Texel
impl Sync for Texel
impl Unpin for Texel
impl UnwindSafe for Texel
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