Struct StandardStream Copy item path Source pub struct StandardStream { }Expand description Satisfies io::Write and WriteColor, and supports optional coloring
to either of the standard output streams, stdout and stderr.
Create a new StandardStream with the given color preferences that
writes to standard output.
On Windows, if coloring is desired and a Windows console could not be
found, then ANSI escape sequences are used instead.
The specific color/style settings can be configured when writing via
the WriteColor trait.
Create a new StandardStream with the given color preferences that
writes to standard error.
On Windows, if coloring is desired and a Windows console could not be
found, then ANSI escape sequences are used instead.
The specific color/style settings can be configured when writing via
the WriteColor trait.
Lock the underlying writer.
The lock guard returned also satisfies io::Write and
WriteColor.
This method is not reentrant . It may panic if lock is called
while a StandardStreamLock is still alive.
Formats the value using the given formatter.
Read more Writes a buffer into this writer, returning how many bytes were written.
Read more Flushes this output stream, ensuring that all intermediately buffered
contents reach their destination.
Read more 🔬 This is a nightly-only experimental API. (can_vector)
Attempts to write an entire buffer into this writer.
Read more 🔬 This is a nightly-only experimental API. (write_all_vectored)
Attempts to write multiple buffers into this writer.
Read more Writes a formatted string into this writer, returning any error
encountered.
Read more Creates a “by reference” adapter for this instance of
Write.
Read more Returns true if and only if the underlying writer supports colors.
Returns true if and only if the underlying writer supports hyperlinks.
Read more Set the color settings of the writer.
Read more Set the current hyperlink of the writer.
Read more Reset the current color settings to their original settings.
Read more Returns true if and only if the underlying writer must synchronously
interact with an end user’s device in order to control colors. By
default, this always returns
false.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more Returns the argument unchanged.
Instruments this type with the provided
Span, returning an
Instrumented wrapper.
Read more Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer.
Read more Mutably dereferences the given pointer.
Read more Drops the object pointed to by the given pointer.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Writes an unsigned 8 bit integer to the underlying writer.
Read more Writes a signed 8 bit integer to the underlying writer.
Read more Writes an unsigned 16 bit integer to the underlying writer.
Read more Writes a signed 16 bit integer to the underlying writer.
Read more Writes an unsigned 24 bit integer to the underlying writer.
Read more Writes a signed 24 bit integer to the underlying writer.
Read more Writes an unsigned 32 bit integer to the underlying writer.
Read more Writes a signed 32 bit integer to the underlying writer.
Read more Writes an unsigned 48 bit integer to the underlying writer.
Read more Writes a signed 48 bit integer to the underlying writer.
Read more Writes an unsigned 64 bit integer to the underlying writer.
Read more Writes a signed 64 bit integer to the underlying writer.
Read more Writes an unsigned 128 bit integer to the underlying writer.
Writes a signed 128 bit integer to the underlying writer.
Writes an unsigned n-bytes integer to the underlying writer.
Read more Writes a signed n-bytes integer to the underlying writer.
Read more Writes an unsigned n-bytes integer to the underlying writer.
Read more Writes a signed n-bytes integer to the underlying writer.
Read more Writes a IEEE754 single-precision (4 bytes) floating point number to
the underlying writer.
Read more Writes a IEEE754 double-precision (8 bytes) floating point number to
the underlying writer.
Read more Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it
Write the byte value of the specified reference, converting it to little endianness
Write the byte value of the specified reference, converting it to big endianness
Write the byte value of the specified reference, not converting it