pub trait AsIndent {
// Required method
fn as_indent(&self) -> &str;
}Available on crate feature
serde_json only.Expand description
A prefix usable for indenting prettified JSON data
assert_eq!(4.as_indent(), " ");
assert_eq!(" -> ".as_indent(), " -> ");Required Methods§
Implementations on Foreign Types§
source§impl<T: AsIndent + ToOwned + ?Sized> AsIndent for Cow<'_, T>
Available on crate feature alloc only.
impl<T: AsIndent + ToOwned + ?Sized> AsIndent for Cow<'_, T>
Available on crate feature
alloc only.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.