pub struct Vio {}
Implementations§
Trait Implementations§
Source§impl VirtualIo for Vio
impl VirtualIo for Vio
Source§fn print<S: Into<String>>(&mut self, message: S) -> &mut Self
fn print<S: Into<String>>(&mut self, message: S) -> &mut Self
Prints a message to the console. Is close to the
print!
macro with
one difference: output is not buffered and is instead immediately
flushed.Source§fn println<S: Into<String>>(&mut self, message: S) -> &mut Self
fn println<S: Into<String>>(&mut self, message: S) -> &mut Self
Prints a message to the console with a new line at the end. Is
equivalent to the
println!
macro.Source§fn read_line(&mut self) -> String
fn read_line(&mut self) -> String
Get user input from the console. The input ends when the user types
a new line.
impl Eq for Vio
impl StructuralPartialEq for Vio
Auto Trait Implementations§
impl Freeze for Vio
impl RefUnwindSafe for Vio
impl Send for Vio
impl Sync for Vio
impl Unpin for Vio
impl UnwindSafe for Vio
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