Struct lazy_cat::LazyStr [] [src]

pub struct LazyStr<A: Display + Sized, B: Display + Sized> { /* fields omitted */ }

Structure created by lazy_cat! macro.

Implements Display and ToString. The generic arguments A and B are typically recursive, so I advise you to not statically define them. Use generics for them. This structure will consume everything given to the lazy_cat! macro then when a string version of this is requested it will be built on the fly by using the Display implementations of everything it has consumed.

Methods

impl<A: Display + Sized, B: Display + Sized> LazyStr<A, B>
[src]

Trait Implementations

impl<A: Display + Sized, B: Display + Sized, C: Display + Sized> Add<C> for LazyStr<A, B>
[src]

The resulting type after applying the + operator

The method for the + operator

impl<A: Display + Sized, B: Display + Sized> Debug for LazyStr<A, B>
[src]

Formats the value using the given formatter.

impl<A: Display + Sized, B: Display + Sized> Display for LazyStr<A, B>
[src]

Formats the value using the given formatter. Read more