[][src]Struct ufmt_utils::LineBuffered

pub struct LineBuffered<W, N> where
    N: ArrayLength<u8>,
    W: uWrite
{ /* fields omitted */ }

A write adapter that buffers writes and automatically flushes on newlines

Methods

impl<W, N> LineBuffered<W, N> where
    N: ArrayLength<u8>,
    W: uWrite
[src]

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

Creates a new LineBuffered adapter

pub fn flush(&mut self) -> Result<(), W::Error>[src]

Flushes the contents of the buffer

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

Destroys the adapter and returns the underlying writer

Trait Implementations

impl<W, N> uWrite for LineBuffered<W, N> where
    N: ArrayLength<u8>,
    W: uWrite
[src]

type Error = W::Error

The error associated to this writer

Auto Trait Implementations

impl<W, N> Send for LineBuffered<W, N> where
    W: Send

impl<W, N> Sync for LineBuffered<W, N> where
    W: Sync

impl<W, N> Unpin for LineBuffered<W, N> where
    W: Unpin,
    <N as ArrayLength<u8>>::ArrayType: Unpin

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> Same<T> for T

type Output = T

Should always be Self

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.