Struct StreamWriter

struct StreamWriter<W: Write> { ... }

Wrapper around a [Write] implementation that implements the [Seek] trait, but where seeking returns an error unless it's a no-op.

Implementations

impl<W: Write> StreamWriter<W>

fn new(inner: W) -> StreamWriter<W>

Creates an instance wrapping the provided inner writer.

fn into_inner(self: Self) -> W

Consumes this wrapper, returning the underlying writer.

impl<T> Any for StreamWriter<W>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for StreamWriter<W>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for StreamWriter<W>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for StreamWriter<W>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Same for StreamWriter<W>

impl<T, U> Into for StreamWriter<W>

fn into(self: Self) -> U

Calls U::from(self).

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

impl<T, U> TryFrom for StreamWriter<W>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for StreamWriter<W>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<W> Freeze for StreamWriter<W>

impl<W> LittleEndianWriteExt for StreamWriter<W>

impl<W> RefUnwindSafe for StreamWriter<W>

impl<W> Send for StreamWriter<W>

impl<W> Sync for StreamWriter<W>

impl<W> Unpin for StreamWriter<W>

impl<W> UnwindSafe for StreamWriter<W>

impl<W: Write> Seek for StreamWriter<W>

fn seek(self: &mut Self, pos: SeekFrom) -> io::Result<u64>

impl<W: Write> Write for StreamWriter<W>

fn write(self: &mut Self, buf: &[u8]) -> io::Result<usize>
fn flush(self: &mut Self) -> io::Result<()>