pub struct PrettierPrinter { /* private fields */ }Expand description
Outputs a prettier-printed version of the Debug string of a variable.
Implementationsยง
Sourceยงimpl PrettierPrinter
impl PrettierPrinter
Sourcepub fn new_with_seed(seed: Seed) -> Self
pub fn new_with_seed(seed: Seed) -> Self
Instantiates PrettierPrinter with given seed. See also PrettierPrinter::default().
Sourcepub fn print<'a, T>(&mut self, inner: &'a T) -> PrettierPrintDisplayer<'a, T>
pub fn print<'a, T>(&mut self, inner: &'a T) -> PrettierPrintDisplayer<'a, T>
Pass your variable to this.
Trait Implementationsยง
Sourceยงimpl Clone for PrettierPrinter
impl Clone for PrettierPrinter
Sourceยงfn clone(&self) -> PrettierPrinter
fn clone(&self) -> PrettierPrinter
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl Debug for PrettierPrinter
impl Debug for PrettierPrinter
Auto Trait Implementationsยง
impl Freeze for PrettierPrinter
impl RefUnwindSafe for PrettierPrinter
impl Send for PrettierPrinter
impl Sync for PrettierPrinter
impl Unpin for PrettierPrinter
impl UnwindSafe for PrettierPrinter
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