Struct ufmt_utils::WriteAdapter
source · [−]pub struct WriteAdapter<W>(pub W)
where
W: Write;
Expand description
An adapter struct allowing to use ufmt
on types which implement core::fmt::Write
For example:
use ufmt::uwrite;
use ufmt_write::uWrite;
use ufmt_utils::WriteAdapter;
let fancy_number: u8 = 42;
let mut s = String::new();
uwrite!(WriteAdapter(&mut s), "{:?}", fancy_number);
Tuple Fields
0: W
Trait Implementations
sourceimpl<W> uWrite for WriteAdapter<W> where
W: Write,
impl<W> uWrite for WriteAdapter<W> where
W: Write,
Auto Trait Implementations
impl<W> RefUnwindSafe for WriteAdapter<W> where
W: RefUnwindSafe,
impl<W> Send for WriteAdapter<W> where
W: Send,
impl<W> Sync for WriteAdapter<W> where
W: Sync,
impl<W> Unpin for WriteAdapter<W> where
W: Unpin,
impl<W> UnwindSafe for WriteAdapter<W> where
W: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more