Struct rustpython_vm::stdlib::sys::PyStderr
source · pub struct PyStderr<'vm>(pub &'vm VirtualMachine);
Expand description
Similar to PySys_WriteStderr in CPython.
Usage
ⓘ
writeln!(sys::PyStderr(vm), "foo bar baz :)");
Unlike writing to a std::io::Write
with the write[ln]!()
macro, there’s no error condition here;
this is intended to be a replacement for the eprint[ln]!()
macro, so write!()
-ing to PyStderr just
returns ()
.
Tuple Fields§
§0: &'vm VirtualMachine
Implementations§
Auto Trait Implementations§
impl<'vm> !RefUnwindSafe for PyStderr<'vm>
impl<'vm> !Send for PyStderr<'vm>
impl<'vm> !Sync for PyStderr<'vm>
impl<'vm> Unpin for PyStderr<'vm>
impl<'vm> !UnwindSafe for PyStderr<'vm>
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