Struct buf::Read [] [src]

pub struct Read<T, R, A: Alloc> { /* fields omitted */ }

Methods

impl<T, R, A: Alloc + Default> Read<T, R, A>
[src]

[src]

impl<T, R, A: Alloc> Read<T, R, A>
[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<T: Debug, R: Debug, A: Debug + Alloc> Debug for Read<T, R, A>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq, R: PartialEq, A: PartialEq + Alloc> PartialEq for Read<T, R, A>
[src]

[src]

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

[src]

This method tests for !=.

impl<T: Eq, R: Eq, A: Eq + Alloc> Eq for Read<T, R, A>
[src]

impl<T: PartialOrd, R: PartialOrd, A: PartialOrd + Alloc> PartialOrd for Read<T, R, A>
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T: Ord, R: Ord, A: Ord + Alloc> Ord for Read<T, R, A>
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl<T: Hash, R: Hash, A: Hash + Alloc> Hash for Read<T, R, A>
[src]

[src]

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

1.3.0
[src]

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

impl<T: Copy, R: Read<T>, A: Alloc> Read<T> for Read<T, R, A>
[src]

[src]

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

[src]

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

[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]

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

[src]

impl<T: Copy, R: Write<T>, A: Alloc> Write<T> for Read<T, R, A>
[src]

Pass-thru

[src]

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

[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]

[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.

Auto Trait Implementations

impl<T, R, A> Send for Read<T, R, A> where
    A: Send,
    R: Send,
    T: Send

impl<T, R, A> Sync for Read<T, R, A> where
    A: Sync,
    R: Sync,
    T: Sync