pub struct PixelMap {
pub width: u32,
pub height: u32,
pub rows: &'static [&'static str],
pub colors: &'static [(char, Rgb)],
}Expand description
A tiny pixel-art image: one string per row, . is transparent.
Fields§
§width: u32§height: u32§rows: &'static [&'static str]§colors: &'static [(char, Rgb)]Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for PixelMap
impl Freeze for PixelMap
impl Move for PixelMap
impl RefUnwindSafe for PixelMap
impl Send for PixelMap
impl Sync for PixelMap
impl Unpin for PixelMap
impl UnsafeUnpin for PixelMap
impl UnwindSafe for PixelMap
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