pub struct WriteToEmbeddedIo<W: Write>(pub W);Expand description
Wrapper around an embedded_io::Write implementation that can be written to by minicbor.
§Usage example
use minicbor_adapters::WriteToEmbeddedIo;
fn serialize(data: &[u8], into: impl embedded_io::Write) {
minicbor::encode(data, WriteToEmbeddedIo(into)).unwrap();
}Tuple Fields§
§0: WTrait Implementations§
Auto Trait Implementations§
impl<W> Freeze for WriteToEmbeddedIo<W>where
W: Freeze,
impl<W> RefUnwindSafe for WriteToEmbeddedIo<W>where
W: RefUnwindSafe,
impl<W> Send for WriteToEmbeddedIo<W>where
W: Send,
impl<W> Sync for WriteToEmbeddedIo<W>where
W: Sync,
impl<W> Unpin for WriteToEmbeddedIo<W>where
W: Unpin,
impl<W> UnwindSafe for WriteToEmbeddedIo<W>where
W: UnwindSafe,
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