[−][src]Struct ufmt_utils::LineBuffered
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]
N: ArrayLength<u8>,
W: uWrite,
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]
N: ArrayLength<u8>,
W: uWrite,
Auto Trait Implementations
impl<W, N> Send for LineBuffered<W, N> where
W: Send,
W: Send,
impl<W, N> Sync for LineBuffered<W, N> where
W: Sync,
W: Sync,
impl<W, N> Unpin for LineBuffered<W, N> where
W: Unpin,
<N as ArrayLength<u8>>::ArrayType: Unpin,
W: Unpin,
<N as ArrayLength<u8>>::ArrayType: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,