pub struct StdIoWrapper<T> { /* private fields */ }Expand description
A wrapper struct for types that have implementations for std::io traits.
Read, Write, Seek traits from this crate are implemented for this type if
corresponding types from std::io are implemented by the inner instance.
Implementations§
Source§impl<T> StdIoWrapper<T>
impl<T> StdIoWrapper<T>
Sourcepub fn new(inner: T) -> Self
pub fn new(inner: T) -> Self
Creates a new StdIoWrapper instance that wraps the provided inner instance.
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Returns inner struct
Trait Implementations§
Source§impl<T> From<T> for StdIoWrapper<T>
Available on crate feature std only.
impl<T> From<T> for StdIoWrapper<T>
Available on crate feature
std only.Source§impl<T> IoBase for StdIoWrapper<T>
Available on crate feature std only.
impl<T> IoBase for StdIoWrapper<T>
Available on crate feature
std only.Source§impl<T: Read> Read for StdIoWrapper<T>
Available on crate feature std only.
impl<T: Read> Read for StdIoWrapper<T>
Available on crate feature
std only.Source§impl<T: Seek> Seek for StdIoWrapper<T>
Available on crate feature std only.
impl<T: Seek> Seek for StdIoWrapper<T>
Available on crate feature
std only.Source§impl<T: Write> Write for StdIoWrapper<T>
Available on crate feature std only.
impl<T: Write> Write for StdIoWrapper<T>
Available on crate feature
std only.Auto Trait Implementations§
impl<T> Freeze for StdIoWrapper<T>where
T: Freeze,
impl<T> RefUnwindSafe for StdIoWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for StdIoWrapper<T>where
T: Send,
impl<T> Sync for StdIoWrapper<T>where
T: Sync,
impl<T> Unpin for StdIoWrapper<T>where
T: Unpin,
impl<T> UnwindSafe for StdIoWrapper<T>where
T: UnwindSafe,
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