pub struct FromStd<T>where
T: ?Sized,{ /* private fields */ }
Expand description
Adapter from std::io
traits.
Implementations§
Source§impl<T> FromStd<T>
impl<T> FromStd<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consume the adapter, returning the inner object.
Trait Implementations§
Source§impl<T> BufRead for FromStd<T>
impl<T> BufRead for FromStd<T>
Source§impl<T> Read for FromStd<T>
impl<T> Read for FromStd<T>
Source§fn read(
&mut self,
buf: &mut [u8],
) -> Result<usize, <FromStd<T> as ErrorType>::Error>
fn read( &mut self, buf: &mut [u8], ) -> Result<usize, <FromStd<T> as ErrorType>::Error>
Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Source§fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill
buf
. Read moreSource§impl<T> Seek for FromStd<T>
impl<T> Seek for FromStd<T>
Source§impl<T> Write for FromStd<T>
impl<T> Write for FromStd<T>
Source§fn write(
&mut self,
buf: &[u8],
) -> Result<usize, <FromStd<T> as ErrorType>::Error>
fn write( &mut self, buf: &[u8], ) -> Result<usize, <FromStd<T> as ErrorType>::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
Source§fn flush(&mut self) -> Result<(), <FromStd<T> as ErrorType>::Error>
fn flush(&mut self) -> Result<(), <FromStd<T> as ErrorType>::Error>
Flush this output stream, blocking until all intermediately buffered contents reach their destination.
Auto Trait Implementations§
impl<T> Freeze for FromStd<T>
impl<T> RefUnwindSafe for FromStd<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for FromStd<T>
impl<T> Sync for FromStd<T>
impl<T> Unpin for FromStd<T>
impl<T> UnwindSafe for FromStd<T>where
T: UnwindSafe + ?Sized,
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