BufDisplay in rustdoc::html::layout - Rust (original) (raw)
pub(crate) struct BufDisplay<F>(pub F);
Expand description
Implements Display for a function that accepts a mutable reference to a String, and (optionally) writes to it.
The wrapped function will receive an empty string, and can modify it, and the Display
implementation will write the contents of the string after the function has finished.
Tuple Fields§
§0: F
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.