Struct buf::Write[][src]

pub struct Write<T, W, A: Alloc> { /* fields omitted */ }

Methods

impl<T, W, A: Alloc> Write<T, W, A>
[src]

impl<T: Copy, W: Write<T>, A: Alloc> Write<T, W, A>
[src]

Trait Implementations

impl<T: Debug, W: Debug, A: Debug + Alloc> Debug for Write<T, W, A>
[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq, W: PartialEq, A: PartialEq + Alloc> PartialEq for Write<T, W, A>
[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, W: Eq, A: Eq + Alloc> Eq for Write<T, W, A>
[src]

impl<T: PartialOrd, W: PartialOrd, A: PartialOrd + Alloc> PartialOrd for Write<T, W, A>
[src]

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

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

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

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

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

impl<T: Ord, W: Ord, A: Ord + Alloc> Ord for Write<T, W, A>
[src]

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

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<T: Hash, W: Hash, A: Hash + Alloc> Hash for Write<T, W, A>
[src]

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

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

impl<T: Copy, W: Write<T>, A: Alloc> Write<T> for Write<T, W, A>
[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<W: Write<u8>, A: Alloc> Write for Write<u8, W, A>
[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

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

Pass-thru

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

Return bounds on number of data ready to read. 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.

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

Auto Trait Implementations

impl<T, W, A> Send for Write<T, W, A> where
    A: Send,
    T: Send,
    W: Send

impl<T, W, A> Sync for Write<T, W, A> where
    A: Sync,
    T: Sync,
    W: Sync