#[non_exhaustive]
pub struct Sink;
Expand description
A writer which will move data into the void.
This struct is generally created by calling sink
. Please
see the documentation of sink()
for more details.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Write a buffer into this writer, returning how many bytes were written. Read more
🔬 This is a nightly-only experimental API. (
can_vector
#69941)
Flush this output stream, ensuring that all intermediately buffered
contents reach their destination. Read more
Attempts to write an entire buffer into this writer. Read more
🔬 This is a nightly-only experimental API. (
write_all_vectored
#70436)
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
Write a buffer into this writer, returning how many bytes were written. Read more
🔬 This is a nightly-only experimental API. (
can_vector
#69941)
Flush this output stream, ensuring that all intermediately buffered
contents reach their destination. Read more
Attempts to write an entire buffer into this writer. Read more
🔬 This is a nightly-only experimental API. (
write_all_vectored
#70436)
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
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (
toowned_clone_into
#41263)
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.