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]
type Output = LazyStr<LazyStr<A, B>, C>
The resulting type after applying the +
operator
fn add(self, other: C) -> LazyStr<LazyStr<A, B>, C>
The method for the +
operator