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