pub struct TextOutput<'a, W> { /* private fields */ }Expand description
Adapts a byte writer for allocation-free std::fmt::Write formatting.
Formatting APIs expose only fmt::Error; this adapter retains the original
I/O error so callers can recover it with TextOutput::finish.
Implementations§
Trait Implementations§
Source§impl<W> Debug for TextOutput<'_, W>
impl<W> Debug for TextOutput<'_, W>
Auto Trait Implementations§
impl<'a, W> !RefUnwindSafe for TextOutput<'a, W>
impl<'a, W> !UnwindSafe for TextOutput<'a, W>
impl<'a, W> Freeze for TextOutput<'a, W>
impl<'a, W> Send for TextOutput<'a, W>
impl<'a, W> Sync for TextOutput<'a, W>
impl<'a, W> Unpin for TextOutput<'a, W>
impl<'a, W> UnsafeUnpin for TextOutput<'a, W>where
&'a mut W: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more