1 //! Generates large snippets of Rust code for usage in the benchmarks.
5 pub fn big_struct() -> String {
8 let mut buf = "pub struct RegisterBlock {".to_string();
10 format_to!(buf, " /// Doc comment for {}.\n", i);
11 format_to!(buf, " pub s{}: S{},\n", i, i);
13 buf.push_str("}\n\n");