Struct io::Pos [] [src]

pub struct Pos<T> {
    pub pos: usize,
    // some fields omitted
}

Fields

Methods

impl<T> Pos<T>
[src]

[src]

Trait Implementations

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

[src]

Performs the conversion.

impl<S: Copy, T: Deref<Target = [S]>> Read<S> for Pos<T>
[src]

[src]

r.read(buf) = self.readv(&mut [buf])

[src]

Pull some data, at most bufs.fold(0, |n, buf| n+buf.len()), from this source into given buffers; return how many data were actually read, or a failure. May block if no data can be read when called. Read more

[src]

Pull buf.len() data from this source into given buffer; return () if so many data were actually read, or a failure and how many data were read before the failure.

[src]

Return bounds on number of data ready to read. Read more

Important traits for Data<R, T>
[src]

Make an Iterator over the data of this reader.

[src]

Pull data from this source into the spare storage of xs, and modify its length to include the data read. If this fails, xs is unmodified. Read more

Important traits for Split<R, T, P, E>
[src]

impl<S: Copy, T: DerefMut<Target = [S]>> Write<S> for Pos<T>
[src]

[src]

w.write(buf) = self.writev(&[buf])

[src]

[src]

Push some data, at most bufs.fold(0, |n, buf| n+buf.len()), to this sink from given buffers; return how many data were actually written, or a failure. May block if no data can be written when called. Read more

[src]

Push buf.len() data to this sink from given buffer; return () if so many data were actually written, or a failure and how many data were written before the failure.

impl<T: DerefMut<Target = [u8]>> Write for Pos<T>
[src]

[src]

Writes a slice of bytes into this writer, returning whether the write succeeded. Read more

1.1.0
[src]

Writes a [char] into this writer, returning whether the write succeeded. Read more

1.0.0
[src]

Glue for usage of the [write!] macro with implementors of this trait. Read more

Auto Trait Implementations

impl<T> Send for Pos<T> where
    T: Send

impl<T> Sync for Pos<T> where
    T: Sync