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 VirtualMachineImplementations§
Auto Trait Implementations§
impl<'vm> Freeze for PyStderr<'vm>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more