pub trait AsIndent {
// Required method
fn as_indent(&self) -> &str;
}Available on crate feature
alloc only.Expand description
A prefix usable for indenting prettified JSON data and
|indent
assert_eq!(4.as_indent(), " ");
assert_eq!(" -> ".as_indent(), " -> ");Required Methods§
Implementations on Foreign Types§
Source§impl<T: AsIndent + ?Sized> AsIndent for MutexGuard<'_, T>
Available on crate feature std only.
impl<T: AsIndent + ?Sized> AsIndent for MutexGuard<'_, T>
Available on crate feature
std only.Source§impl<T: AsIndent + ?Sized> AsIndent for RwLockReadGuard<'_, T>
Available on crate feature std only.
impl<T: AsIndent + ?Sized> AsIndent for RwLockReadGuard<'_, T>
Available on crate feature
std only.Source§impl<T: AsIndent + ?Sized> AsIndent for RwLockWriteGuard<'_, T>
Available on crate feature std only.
impl<T: AsIndent + ?Sized> AsIndent for RwLockWriteGuard<'_, T>
Available on crate feature
std only.