pub struct Pretty<'a, 'buf> { /* private fields */ }Expand description
Write a parsed and potentially modified json::Element tree to a buffer formatted
for human readability.
The JSON is formatted so that each element is indented and put on its own line.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'buf> !Send for Pretty<'a, 'buf>
impl<'a, 'buf> !Sync for Pretty<'a, 'buf>
impl<'a, 'buf> Freeze for Pretty<'a, 'buf>
impl<'a, 'buf> RefUnwindSafe for Pretty<'a, 'buf>
impl<'a, 'buf> Unpin for Pretty<'a, 'buf>
impl<'a, 'buf> UnsafeUnpin for Pretty<'a, 'buf>
impl<'a, 'buf> UnwindSafe for Pretty<'a, 'buf>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoCaveat for T
impl<T> IntoCaveat for T
Source§fn into_caveat<W>(self, warnings: Set<W>) -> Caveat<T, W>where
W: Warning,
fn into_caveat<W>(self, warnings: Set<W>) -> Caveat<T, W>where
W: Warning,
Any type can be converted to
Caveat<T> by supplying a list of Warnings.Source§fn into_infallible_caveat(self) -> Caveat<Self, Infallible>
fn into_infallible_caveat(self) -> Caveat<Self, Infallible>
If a
FromSchema is infallible a Caveat can be created using this method.