pub enum PrintStream {
Stdout,
Stderr,
}Expand description
Identifies the output stream for a single print fragment.
Today the print() builtin only writes to Stdout. The Stderr variant is
included for forward compatibility with a future print(..., file=sys.stderr)
implementation so the collected-output API shape does not have to change when
that lands.
Variants§
Stdout
Standard output — the default for every print() call today.
Stderr
Standard error — reserved for future print(..., file=sys.stderr) support.
Trait Implementations§
Source§impl Clone for PrintStream
impl Clone for PrintStream
Source§fn clone(&self) -> PrintStream
fn clone(&self) -> PrintStream
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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