Trait askama::filters::AsIndent

source ·
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§

source

fn as_indent(&self) -> &str

Borrow self as prefix to use.

Implementations on Foreign Types§

source§

impl AsIndent for str

source§

fn as_indent(&self) -> &str

source§

impl AsIndent for usize

source§

fn as_indent(&self) -> &str

source§

impl AsIndent for String

Available on crate feature alloc only.
source§

fn as_indent(&self) -> &str

source§

impl AsIndent for Wrapping<usize>

source§

fn as_indent(&self) -> &str

source§

impl AsIndent for NonZeroUsize

source§

fn as_indent(&self) -> &str

source§

impl<T> AsIndent for Pin<T>
where T: Deref, <T as Deref>::Target: AsIndent,

source§

fn as_indent(&self) -> &str

source§

impl<T: AsIndent + ToOwned + ?Sized> AsIndent for Cow<'_, T>

Available on crate feature alloc only.
source§

fn as_indent(&self) -> &str

source§

impl<T: AsIndent + ?Sized> AsIndent for &T

source§

fn as_indent(&self) -> &str

source§

impl<T: AsIndent + ?Sized> AsIndent for &mut T

source§

fn as_indent(&self) -> &str

source§

impl<T: AsIndent + ?Sized> AsIndent for Box<T>

Available on crate feature alloc only.
source§

fn as_indent(&self) -> &str

source§

impl<T: AsIndent + ?Sized> AsIndent for Rc<T>

Available on crate feature alloc only.
source§

fn as_indent(&self) -> &str

source§

impl<T: AsIndent + ?Sized> AsIndent for Arc<T>

Available on crate feature alloc only.
source§

fn as_indent(&self) -> &str

source§

impl<T: AsIndent + ?Sized> AsIndent for Ref<'_, T>

source§

fn as_indent(&self) -> &str

source§

impl<T: AsIndent + ?Sized> AsIndent for RefMut<'_, T>

source§

fn as_indent(&self) -> &str

source§

impl<T: AsIndent + ?Sized> AsIndent for MutexGuard<'_, T>

Available on crate feature std only.
source§

fn as_indent(&self) -> &str

source§

impl<T: AsIndent + ?Sized> AsIndent for RwLockReadGuard<'_, T>

Available on crate feature std only.
source§

fn as_indent(&self) -> &str

source§

impl<T: AsIndent + ?Sized> AsIndent for RwLockWriteGuard<'_, T>

Available on crate feature std only.
source§

fn as_indent(&self) -> &str

Implementors§