{"version":"1.0","type":"rich","title":"Code shared from the Rust Playground","description":"The visualization examines Rust’s borrow checker through a small struct and its lifetime-bound methods. It shows how `bind_lifetime_mut` returns a reference to an `i32` field, while `legal` and `not_legal` illustrate differing lifetime outcomes based on control flow. The code uses Rust’s native borrow-checking rules rather than any external library, with the rendering approach being the source code itself from the Rust Playground. The example contrasts a direct return of a reborrowed reference against a conditional return that triggers an error.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-bf04538979b2269744ab050fad11616f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}