pub struct ScrollingTextRenderer { /* private fields */ }Implementations§
Source§impl ScrollingTextRenderer
impl ScrollingTextRenderer
pub fn init( framebuffer: *mut u8, width: usize, height: usize, pitch: usize, bpp: usize, font_data: &'static [u8], )
pub fn get() -> &'static mut Self
pub fn set_colors(&mut self, fg: u32, bg: u32)
pub fn write_char(&mut self, ch: char)
pub fn write_str(&mut self, s: &str)
pub fn clear(&mut self)
Trait Implementations§
Source§impl Write for ScrollingTextRenderer
impl Write for ScrollingTextRenderer
impl Send for ScrollingTextRenderer
impl Sync for ScrollingTextRenderer
Auto Trait Implementations§
impl Freeze for ScrollingTextRenderer
impl RefUnwindSafe for ScrollingTextRenderer
impl Unpin for ScrollingTextRenderer
impl UnwindSafe for ScrollingTextRenderer
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