Struct smoltcp::wire::pretty_print::PrettyPrinter [−][src]
Wrapper for using a PrettyPrint
where a Display
is expected.
Implementations
impl<'a, T: PrettyPrint> PrettyPrinter<'a, T>
[src]
pub fn new(
prefix: &'static str,
buffer: &'a dyn AsRef<[u8]>
) -> PrettyPrinter<'a, T>
[src]
prefix: &'static str,
buffer: &'a dyn AsRef<[u8]>
) -> PrettyPrinter<'a, T>
Format the listing with the recorded parameters when Display::fmt is called.
impl<'a, T: PrettyPrint + AsRef<[u8]>> PrettyPrinter<'a, T>
[src]
pub fn print(printable: &'a T) -> PrettyPrinter<'a, T>
[src]
Create a PrettyPrinter
which prints the given object.
Trait Implementations
impl<'a, T: PrettyPrint> Display for PrettyPrinter<'a, T>
[src]
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for PrettyPrinter<'a, T>
impl<'a, T> !Send for PrettyPrinter<'a, T>
impl<'a, T> !Sync for PrettyPrinter<'a, T>
impl<'a, T> Unpin for PrettyPrinter<'a, T> where
T: Unpin,
T: Unpin,
impl<'a, T> !UnwindSafe for PrettyPrinter<'a, T>
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,
pub 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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,