pub enum PrintStream {
Stdout,
Stderr,
}Expand description
Identifies the output stream for a single print fragment.
print() writes to Stdout unless it is given file=sys.stderr, which is
the only way sandboxed code can reach Stderr.
Variants§
Stdout
Standard output, the default for a print() call with no file=.
Stderr
Standard error, reached by print(..., file=sys.stderr).
Trait Implementations§
Source§impl Clone for PrintStream
impl Clone for PrintStream
impl Copy for PrintStream
Source§impl Debug for PrintStream
impl Debug for PrintStream
impl Eq for PrintStream
Source§impl PartialEq for PrintStream
impl PartialEq for PrintStream
impl StructuralPartialEq for PrintStream
Auto Trait Implementations§
impl Freeze for PrintStream
impl RefUnwindSafe for PrintStream
impl Send for PrintStream
impl Sync for PrintStream
impl Unpin for PrintStream
impl UnsafeUnpin for PrintStream
impl UnwindSafe for PrintStream
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