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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

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

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

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

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.