pub struct FromStd<T: ?Sized> { /* private fields */ }
Available on crate feature std only.
Expand description

Adapter from std::io traits.

Implementations

Create a new adapter.

Consume the adapter, returning the inner object.

Borrow the inner object.

Mutably borrow the inner object.

Trait Implementations

Error type of all the IO operations on this type.
Pull some bytes from this source into the specified buffer, returning how many bytes were read.
Read the exact number of bytes required to fill buf.
Seek to an offset, in bytes, in a stream.
Rewind to the beginning of a stream.
Returns the current seek position from the start of the stream.
Write a buffer into this writer, returning how many bytes were written.
Flush this output stream, ensuring that all intermediately buffered contents reach their destination.
Write an entire buffer into this writer.
Write a formatted string into this writer, returning any error encountered.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.