[][src]Struct genio::std_impls::GenioWrite

pub struct GenioWrite<W>(_);

Wrapper providing genio::Write trait for std::io::Write types.

Methods

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

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

Wraps std writer into genio writer.

pub fn into_inner(self) -> W[src]

Unwraps std writer into genio writer.

Trait Implementations

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

type WriteError = Error

Value of this type is returned when write() fails. Read more

type FlushError = Error

Value of this type is returned when flush() fails. In case of low-level writers flush often does nothing and therefore doesn't return error, so this type might be Void. Read more

fn write_all(&mut self, buf: &[u8]) -> Result<(), Self::WriteError>[src]

Attempts to write an entire buffer into this Write.

fn uses_size_hint(&self) -> bool[src]

Reports to the caller whether size hint is actually used. This can prevent costly computation of size hint that would be thrown away. Read more

Auto Trait Implementations

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

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

Blanket Implementations

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> From for T[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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