Struct io::Pos[][src]

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

Fields

Methods

impl<T> Pos<T>
[src]

Trait Implementations

impl<T: Debug> Debug for Pos<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Clone> Clone for Pos<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for Pos<T>
[src]

impl<T: PartialEq> PartialEq for Pos<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq> Eq for Pos<T>
[src]

impl<T: Hash> Hash for Pos<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

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

Performs the conversion.

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

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

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

Pull buf.len() data from this source into given buffer; return how many data were actually read (which may be less than buf.len() if we reached end-of-file), or a failure and how many data were read before the failure. Read more

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.

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

Important traits for Data<R, T>

Make an Iterator over the data of this reader.

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>

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

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

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

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]

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

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

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