Function mz_repr::explain::text::text_string_at

source ·
pub fn text_string_at<'a, T: DisplayText<C>, C, F: Fn() -> C>(
    t: &'a T,
    f: F,
) -> String
Expand description

Apply f: F to create a rendering context of type C and render the given tree t: T within that context.

§Panics

Panics if the DisplayText::fmt_text call returns a fmt::Error.