pub struct Terminal { /* private fields */ }
Implementations§
Source§impl Terminal
impl Terminal
pub fn new() -> Option<Self>
pub fn as_inner(&mut self) -> Pin<&mut Terminal>
Sourcepub fn draw(&mut self, str_id: &ImStr, open: &mut bool)
pub fn draw(&mut self, str_id: &ImStr, open: &mut bool)
Draw the terminal window.
open is an out-parameter indicating whether the window is (still) open.
Sourcepub fn write(&mut self, bytes: &str)
pub fn write(&mut self, bytes: &str)
Write characters to the terminal. TODO: Is it correct to send rust utf8 slices like this?
pub fn read(&mut self, buffer: &mut [u8]) -> i32
Auto Trait Implementations§
impl Freeze for Terminal
impl RefUnwindSafe for Terminal
impl !Send for Terminal
impl !Sync for Terminal
impl Unpin for Terminal
impl UnwindSafe for Terminal
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