[][src]Struct binwrite::write_track::WriteTrack

pub struct WriteTrack<W: Write> { /* fields omitted */ }

A struct for wrapping anything that implements the Write type, tracking the current position and implementing Seek, but only for seeks that go nowhere. This allows you to keep track of how many bytes have been written since the creation of the WriteTrack. Can be thought of as a looser, albeit weaker, Cursor

Methods

impl<W: Write> WriteTrack<W>[src]

pub fn new(inner: W) -> Self[src]

Trait Implementations

impl<W: Write> Deref for WriteTrack<W>[src]

type Target = W

The resulting type after dereferencing.

impl<W: Write> DerefMut for WriteTrack<W>[src]

impl<W: Write> Seek for WriteTrack<W>[src]

impl<W: Write> Write for WriteTrack<W>[src]

Auto Trait Implementations

impl<W> RefUnwindSafe for WriteTrack<W> where
    W: RefUnwindSafe

impl<W> Send for WriteTrack<W> where
    W: Send

impl<W> Sync for WriteTrack<W> where
    W: Sync

impl<W> Unpin for WriteTrack<W> where
    W: Unpin

impl<W> UnwindSafe for WriteTrack<W> where
    W: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.