2 ms·
Sure. Here's a random page on the book: https://doc.rust-lang.org/stable/book/ch08-01-vectors.html https://doc.rust-lang.org/stable/book/ch08-01-vectors.html Y
by steveklabnik 6y ago
Sure. Here's a random page on the book: https://doc.rust-lang.org/stable/book/ch08-01-vectors.html https://doc.rust-lang.org/stable/book/ch08-01-vectors.html
You can click the arrows to run the code. This effectively makes an AJAX call to the playpen, and puts the results back on the page.
Here's a random page from the API docs: https://doc.rust-lang.org/stable/std/string/struct.String.html#examples https://doc.rust-lang.org/stable/std/string/struct.String.ht...
Those "run" buttons will open up the example in the playpen so you can play around with it.
I think ideally these would all let you edit in place, run in the page, or open in the playpen, but they use slightly different tooling and nobody has put in the work to make it all identical yet.