pub struct UARTWriteAdapter<T: UART>(pub T);
Expand description
Newtype wrapper that allows a UART implementation to be used by core::fmt::write
.
Tuple Fields§
§0: T
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for UARTWriteAdapter<T>where
T: Freeze,
impl<T> RefUnwindSafe for UARTWriteAdapter<T>where
T: RefUnwindSafe,
impl<T> Send for UARTWriteAdapter<T>where
T: Send,
impl<T> Sync for UARTWriteAdapter<T>where
T: Sync,
impl<T> Unpin for UARTWriteAdapter<T>where
T: Unpin,
impl<T> UnwindSafe for UARTWriteAdapter<T>where
T: 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